[go-nuts] Re: Using log Package with log.Lshortfile Flag

2018-04-13 Thread Kaveh Shahbazian
Filed an issue . -- 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 opt

[go-nuts] Re: Using log Package with log.Lshortfile Flag

2018-04-12 Thread Kaveh Shahbazian
Line 13 is where the method inflog.Println is being passed (not called) - passed to function trace. At that point inflog.Println should be treated just like a value. Then function trace calls inflog.Println (on line number 37). Then method inflog.Println gets deferred (not yet called) and inter

[go-nuts] Re: Using log Package with log.Lshortfile Flag

2018-04-11 Thread Kaveh Shahbazian
The first function inflog.Println is not even being called. It is being passed to the function tract as an argument. And the result of function trace is being sent to another call to function inflog.Println. The result of function trace is a struct which has a String method and the the String m

[go-nuts] Re: Using log Package with log.Lshortfile Flag

2018-04-11 Thread Ayan George
On Wednesday, April 11, 2018 at 5:31:55 AM UTC-4, Kaveh Shahbazian wrote: > > The code resides here . > > The output from the program is: > > NaClMain [ info ] 23:00:00 main.go:13: main.main started > NaClMain [ info ] 23:00:00 main.go:13: main.compute1 st