randomid

package
v1.122.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID struct {
	// contains filtered or unexported fields
}

ID holds a random identifier

func New

func New() ID

New builds a random identifier. We always generate a more secure random value; we could in future expose less secure options if this becomes a bottleneck.

func (ID) String

func (i ID) String() string

String returns an ascii (base32) encoding of the random identifier.

Jump to

Keyboard shortcuts

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