Closed bodgit closed 5 years ago
Instead of *os.File, use io.Reader which is more permissive but still allows *os.File as it implements the same interface so shouldn't break existing code.
*os.File
io.Reader
Instead of
*os.File
, useio.Reader
which is more permissive but still allows*os.File
as it implements the same interface so shouldn't break existing code.