ulid

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: MIT Imports: 8 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 string

ID implements a Universally unique Lexicographically sortable Identifier.

func MustNew

func MustNew(prefix string) ID

MustNew returns a new ID for time.Now() given a prefix.

It uses the default entropy source.

func (ID) MarshalGQL

func (i ID) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface.

func (*ID) Scan

func (i *ID) Scan(src interface{}) error

Scan implements the Scanner interface.

func (*ID) UnmarshalGQL

func (i *ID) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface.

func (ID) Value

func (i ID) Value() (driver.Value, error)

Value implements the driver.Value interface.

Jump to

Keyboard shortcuts

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