ulid

package
v0.0.0-...-abb50dc Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 7 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 ULID

func MustNew

func MustNew(prefix string) ID

MustNew returns a new ULID for time.Now() given a prefix. This 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.Unmarshaller interface.

func (ID) Value

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

Value implements the driver Valuer interface.

Jump to

Keyboard shortcuts

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