debugging - Is there a way to get the source code filename and line number in Go? -
in c/c++ can use __file__ , __line__ access current file , line number.
does go provide similar?
indeed does:
http://golang.org/pkg/runtime/#caller
runtime.caller can used file name/line number of calling functions, too.
Comments
Post a Comment