(id string)
| 74 | } |
| 75 | |
| 76 | func GetOwnerAndNameFromIdWithError(id string) (string, string, error) { |
| 77 | tokens := strings.Split(id, "/") |
| 78 | if len(tokens) != 2 { |
| 79 | return "", "", errors.New("id should be in the format of owner/name") |
| 80 | } |
| 81 | |
| 82 | return tokens[0], tokens[1], nil |
| 83 | } |
| 84 | |
| 85 | func GetOwnerAndNameFromId3(id string) (string, string, string) { |
| 86 | tokens := strings.Split(id, "/") |
no outgoing calls