Re: [go-nuts] How can I get running func name?

2016-07-13 Thread Jan Mercl
On Wed, Jul 13, 2016 at 3:56 PM Harry wrote: > I want to keep something records as log and where it is to specify. Many loggers are able to include the file_name:line_number info, which is cheaper to obtain at runtime. -- -j -- You received this message because you are

Re: [go-nuts] How can I get running func name?

2016-07-13 Thread Harry
I want to keep something records as log and where it is to specify. 2016年7月13日水曜日 21時28分52秒 UTC+9 Konstantin Khomoutov: > > On Wed, 13 Jul 2016 04:48:18 -0700 (PDT) > Harry wrote: > > > func SomethingFunc() { > > fmt.Printf("func is %s\n", funcName) > > /* code */ >

Re: [go-nuts] How can I get running func name?

2016-07-13 Thread Jan Mercl
On Wed, Jul 13, 2016 at 1:48 PM Harry wrote: > If I could get func name automatically, same code can be used. https://play.golang.org/p/XjDcnK78xY -- -j -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe