id

package
v0.0.0-...-2887d17 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: BSD-3-Clause 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{ ulid.ULID }

ID represents a universally unique lexicographically sortable identifier

func FromString

func FromString(s string) (ID, error)

FromString tries to parse the ID from a string

func New

func New() (ID, error)

New creates a new unique ID

func (ID) IsZero

func (id ID) IsZero() bool

IsZero returns true if the identifier is zero

Jump to

Keyboard shortcuts

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