golib
golib copied to clipboard
memfile: add empty Close function
Sometimes it's useful to have also Close() function in memfile. I needed it when I worked with https://github.com/faiface/beep
Just something simple like this:
func (fb *File) Close() error { return nil }
Can you please add it?
Pull requests welcomed. However, Close should not simply be a noop. It should forbid subsequent IO operations in a similar way to how os.File.Close disallows subsequent IO operations.
Ha, I needed that as well today. Decided to not use memfile and build my own because of not having the close method
Implemented it now https://github.com/dsnet/golib/pull/5