identifier

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 2 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 xid.ID

ID is a unique identifier

func FromBytes

func FromBytes(idString []byte) (ID, error)

func New

func New() ID

New generates a new ID

func (ID) Bytes

func (id ID) Bytes() []byte

func (ID) FromBytes

func (id ID) FromBytes(idString []byte) (ID, error)

func (ID) FromString

func (id ID) FromString(idString string) ID

FromString parses a string into an ID

func (ID) String

func (id ID) String() string

String returns the string representation of the ID

Jump to

Keyboard shortcuts

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