MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / Encode

Method Encode

internal/needs/cursor.go:155–158  ·  view source on GitHub ↗

Encode is the opaque token form.

()

Source from the content-addressed store, hash-verified

153
154// Encode is the opaque token form.
155func (c Cursor) Encode() string {
156 b, _ := json.Marshal(c)
157 return base64.RawURLEncoding.EncodeToString(b)
158}
159
160// Key is the position the cursor names.
161func (c Cursor) Key() Key {

Calls

no outgoing calls

Tested by 1