Gets the URI components @param uri: The URI to ge split @return: collection, repo, rkey
(uri string)
| 2038 | // @param uri: The URI to ge split |
| 2039 | // @return: collection, repo, rkey |
| 2040 | func GetURIComponents(uri string) (string, string, string) { |
| 2041 | uriSplit := strings.Split(uri, "/") |
| 2042 | // Example URI |
| 2043 | // at://did:plc:khcyntihpu7snjszuojjgjc4/app.bsky.feed.repost/3lcq7ddjinu2h |
| 2044 | return uriSplit[3], uriSplit[2], uriSplit[4] |
| 2045 | } |