[go-nuts] Re: Trying to dynamically find interfaces

2016-06-27 Thread Egon
On Monday, 27 June 2016 17:16:40 UTC+3, David Koblas wrote: > > I've got a program that is trying to implement functions on "subclasses", > where the parent can check to see if the interface is implemented. For > perspective, it's really dealing with REST URL generation based on if > methods exi

[go-nuts] Re: Trying to dynamically find interfaces

2016-06-27 Thread Tim O'Brien
It's best to have a function to create your BaseAppController: func NewBaseAppContoller(subClasses ...interface{}) *BaseAppController { for _, i := range subClasses { } } On Monday, 27 June 2016 15:16:40 UTC+1, David Koblas wrote: > > I've got a program that is trying to implement functions on