MCPcopy
hub / github.com/duke-git/lancet / funcname

Function funcname

xerror/stack.go:223–228  ·  view source on GitHub ↗

funcname removes the path prefix component of a function's name reported by func.Name().

(name string)

Source from the content-addressed store, hash-verified

221
222// funcname removes the path prefix component of a function's name reported by func.Name().
223func funcname(name string) string {
224 i := strings.LastIndex(name, "/")
225 name = name[i+1:]
226 i = strings.Index(name, ".")
227 return name[i+1:]
228}

Callers 1

FormatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…