Help us shape the future of Go! Take the 2026 Go Developer Survey

convert

package
v1.233.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeId

func MakeId(s []byte) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL