[go-nuts] Re: Where should interfaces live?

2016-11-23 Thread Vorn Mom
because of the inheritance-based interface, and showcases the power of Go interfaces. It's usually defined in the package that needs it. Both use cases are valid depending on what you're building and both are possible in Go. On Monday, November 21, 2016 at 10:30:21 AM UTC-5, Vorn M

[go-nuts] Where should interfaces live?

2016-11-21 Thread Vorn Mom
Sorry if it was asked before, but where should interfaces live? - In the package that contains an implementation of it. - In its own package. - or in the package that needs it. The standard library is not consistent. For example: - io.Writer is defined in a package that also has an

[go-nuts] Re: Strange "go get" behavior

2016-06-15 Thread Vorn Mom
Thanks, that was it! On Wednesday, June 1, 2016 at 3:58:55 PM UTC-4, Vorn Mom wrote: > > I have a Go package hosted in a private git repo. The go package consists > of a parent package and two sub packages: > > github.privaterepo.com/vmom/gizbus > github.privaterepo.co