[go-nuts] reflect, is it possible to get the [body + sign] of a func as text at runtime ?

2016-09-18 Thread 'Mihai B' via golang-nuts
The body is compiled so you can't get it via reflection. -- 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+unsubscr...@googlegroups.com. For more

[go-nuts] reflect, is it possible to get the [body + sign] of a func as text at runtime ?

2016-09-17 Thread mhhcbon
Hi, i m wondering if one can use reflect to extract at runtime the body and and signature of a Func or 'Public method' ? Will a reflect.Value.String of a Method give me that data ? https://golang.org/pkg/reflect/#Method Will that work on a compiled binary ? (An environment where the raw source