Hi, if you wish not declare a struct and its interface, you might simply make a function type.
See https://play.golang.org/p/xuycrPc8sF Then in your main program, you consume the func type, and inject a func impl. It is not as versatile as interface, but that can make the job. -- 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.
