funcname removes the path prefix component of a function's name reported by func.Name().
(name string)
| 170 | |
| 171 | // funcname removes the path prefix component of a function's name reported by func.Name(). |
| 172 | func funcname(name string) string { |
| 173 | i := strings.LastIndex(name, "/") |
| 174 | name = name[i+1:] |
| 175 | i = strings.Index(name, ".") |
| 176 | return name[i+1:] |
| 177 | } |
no outgoing calls
searching dependent graphs…