ids

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDPrefix

type IDPrefix string
const (
	Key IDPrefix = "k"
)

type PrefixedID

type PrefixedID struct {
	Prefix IDPrefix
	ID     uuid.UUID
}

func NewKey

func NewKey() PrefixedID

NewKey returns a new PrefixedID with the Key prefix and a new uuid.

func ParsePrefixedID

func ParsePrefixedID(id string) (PrefixedID, error)

func (*PrefixedID) String

func (pid *PrefixedID) String() string

Jump to

Keyboard shortcuts

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