funcname removes the path prefix component of a function's name reported by func.Name().
(name string)
| 221 | |
| 222 | // funcname removes the path prefix component of a function's name reported by func.Name(). |
| 223 | func 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…