(path string)
| 65 | } |
| 66 | |
| 67 | func kindFromPath(path string) (string, error) { |
| 68 | parts := strings.Split(path, "/") |
| 69 | if len(parts) != 4 { |
| 70 | return "", fmt.Errorf("path wrong length (is %d, expected 5)", len(parts)) |
| 71 | } |
| 72 | return parts[2], nil |
| 73 | } |
no outgoing calls
no test coverage detected