Example #1
0
// Some assertions around filehandle's applicability
func TestTypes(t *testing.T) {
	_ = os.FileInfo(&FileHandle{})
	_ = io.Closer(&FileHandle{})
	_ = io.Reader(&FileHandle{})
	_ = io.ReaderAt(&FileHandle{})
	_ = io.WriterTo(&FileHandle{})
	_ = io.Seeker(&FileHandle{})
}
Example #2
0
func NewWriter(writerSeeker io.WriteSeeker) *Writer {
	return &Writer{offset: 0, writer: io.Writer(writerSeeker), seeker: io.Seeker(writerSeeker), listInfo: []writerListInfo{}}
}