()
| 5 | type Name string |
| 6 | |
| 7 | func (n Name) Split() (string, string) { |
| 8 | ind := strings.IndexByte(string(n), ':') |
| 9 | if ind == -1 { |
| 10 | return "", string(n) |
| 11 | } |
| 12 | return string(n[:ind]), string(n[ind+1:]) |
| 13 | } |
| 14 | |
| 15 | func (n Name) Space() string { |
| 16 | space, _ := n.Split() |
no outgoing calls
no test coverage detected