MCPcopy Index your code
hub / github.com/the-open-agent/openagent / GetOwnerAndNameFromIdWithError

Function GetOwnerAndNameFromIdWithError

util/string.go:76–83  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

74}
75
76func 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
85func GetOwnerAndNameFromId3(id string) (string, string, string) {
86 tokens := strings.Split(id, "/")

Callers 15

GetCommentMethod · 0.92
UpdateCommentMethod · 0.92
addRecordForFileFunction · 0.92
GetPermissionMethod · 0.92
resolveIssueStoreFunction · 0.92
GetIssueMethod · 0.92
UpdateIssueMethod · 0.92
GetProviderFunction · 0.92
UpdateProviderFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestUpdateMessagesForOrgFunction · 0.74