service and exposes those functions to the caller.
Is it possible to create methods during runtime? E.g.:
type Foo struct {}
func main() {
// Create new method Bar on Foo here at runtime
reflect.MakeMethod("Foo", "Bar", func(){} )
f := Foo{}
f.Bar()
}
The other way I'm thinking of doing this is by static code generation.
Looks like that's how Google is doing it<https://code.google.com/p/google-api-go-client/>,
so that's probably the way to go, right?
--
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 golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.