Hi, I have a question about the stacktrace and the way i m using it.
I wonder if below described method will have issues. My goal is to find the path of the main. For that I use the stacktrace and reverse it to get a list of files like this, /usr/local/go/src/runtime/asm_amd64.s /usr/local/go/src/runtime/proc.go /tmp/fakegopath/src/whatever/main.go /tmp/fakegopath/src/github.com/mh-cbon/mainpath/mainpath.go Then, i iterate those results and look for the first file that starts with GOPATH. In my understanding that should be the main file, everything before belongs to GOROOT, everything after is not main. Can you think of potential problems with this method ? I tested this on linux (multiple go versions) / windows (go1.7), it works fine so far, but i m suspicious :) thanks! -- 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 options, visit https://groups.google.com/d/optout.