MCPcopy Create free account
hub / github.com/Preloading/TwitterAPIBridge / GetURIComponents

Function GetURIComponents

bluesky/blueskyapi.go:2040–2045  ·  view source on GitHub ↗

Gets the URI components @param uri: The URI to ge split @return: collection, repo, rkey

(uri string)

Source from the content-addressed store, hash-verified

2038// @param uri: The URI to ge split
2039// @return: collection, repo, rkey
2040func 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}

Callers 1

GetRecordWithUriFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected