MCPcopy Create free account
hub / github.com/chain/txvm / callerName

Function callerName

log/stack.go:38–44  ·  view source on GitHub ↗
(skip int)

Source from the content-addressed store, hash-verified

36}
37
38func callerName(skip int) string {
39 pc, _, _, ok := runtime.Caller(skip + 1)
40 if !ok {
41 return ""
42 }
43 return runtime.FuncForPC(pc).Name()
44}
45
46// caller returns a string containing filename and line number of
47// the nearest function invocation on the calling goroutine's stack,

Callers 1

HelperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected