funcKit

package
v2.0.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCaller

func GetCaller(callDepth int) string

GetCaller

参考: go-zero中的logx/util.go.

@param callDepth 必须满足: >=0,实际使用中: >=1

e.g. (1) => "test/test1.go:27"

func GetEntireCaller

func GetEntireCaller(callDepth int) string

GetEntireCaller

e.g. (1) => test/test1.go:26|testFunc

func GetFuncName added in v2.0.17

func GetFuncName(callDepth int) string

GetFuncName

@param callDepth (1) 必须满足: >=0,实际使用中: >=1

(2) 如果callDepth == 1,则返回 调用此函数的函数的函数名(不含包名)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL