splitNameAlias parses entries of the form "Name" or "Name=Alias".
(s string)
| 72 | |
| 73 | // splitNameAlias parses entries of the form "Name" or "Name=Alias". |
| 74 | func splitNameAlias(s string) (name, alias string) { |
| 75 | for i := 0; i < len(s); i++ { |
| 76 | if s[i] == '=' { |
| 77 | return s[:i], s[i+1:] |
| 78 | } |
| 79 | } |
| 80 | return s, "" |
| 81 | } |
no outgoing calls
searching dependent graphs…