Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEntireCaller ¶
AddEntireCaller
@param skip 1: 加上 调用此函数的函数的EntireCaller
e.g. main()调用此函数 (1, "123") => "test/test1.go:11|main 123"
func GetCaller ¶
GetCaller
参考: go-zero中的logx/util.go.
@param callDepth 必须满足: >=0,实际使用中: >=1
e.g. (1) => "test/test1.go:27"
func GetFuncName ¶
GetFuncName
@param callDepth (1) 必须满足: >=0,实际使用中: >=1
(2) callDepth == 1: 返回 调用此函数的函数的函数名(不含包名)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.