id

package
v0.0.0-...-384ce83 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 6 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 interface {
	fmt.Stringer
	Bytes() []byte
}

ID describes a general identifier. An ID has to be unique application-wide. IDs must not be re-used.

func Create

func Create() ID

Create creates a globally unique ID. This function is safe for concurrent use.

func Parse

func Parse(idBytes []byte) (ID, error)

Parse parses an ID from a byte slice.

Jump to

Keyboard shortcuts

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