id

package
v0.0.0-...-f5d25ad Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package id provides functions for creating globally unique IDs that can be used by the application.

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