See https://github.com/golang/go/issues/14106
On 9 April 2018 at 19:40, Glen Newton <[email protected]> wrote: > Hello, > > I was wondering why os.File is a struct and not an interface. It does not > expose anything except methods. > > I was wanting to make a mock os.File for testing and other purposes, but > it not being an interface makes this not easy. Unless I am missing > something here. > > Thanks, > Glen > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
