[go-nuts] log.Logger, Why is this not an interface?

2016-07-07 Thread zgershman
Hey All, Originally asked on twitter but a more long-form medium is required to answer this question. I've recently been working on adding logging to a library and have been replacing what was once a custom logging interface with just *log.Logger. In so doing, I removed my ability to mock the l

Re: [go-nuts] log.Logger, Why is this not an interface?

2016-07-08 Thread zgershman
So, if in the foreseeable future I am not going to swap my logging implementation (won't say never) then it would seem to me that I don't need to prematurely use an interface when one is not required. Does that sound correct? On Friday, July 8, 2016 at 5:51:18 AM UTC-7, Ian Davis wrote: > I