Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeId ¶
MakeId takes a byte representation of a resource and returns a stable string ID for it.
Example ¶
ExampleMakeId demonstrates how to use MakeId function.
// Generate a stable ID from a resource identifier.
resourceID := []byte("user:12345:session:67890")
id := MakeId(resourceID)
fmt.Printf("Stable ID: %s (length: %d)\n", id[:8]+"...", len(id))
Output: Stable ID: c41212f6... (length: 40)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.