Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCaller ¶
getCaller returns the filename and the line info of a function further down in the call stack. Passing 0 in as callDepth would return info on the function calling getCallerIgnoringLog, 1 the parent function, and so on. Any suffixes passed to getCaller are path fragments like "/pkg/log/log.go", and functions in the call stack from that file are ignored.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.