ulid

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 7 Imported by: 0

README

ulid

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UID

type UID struct {
	// contains filtered or unexported fields
}

func (UID) Bytes

func (u UID) Bytes() []byte

func (*UID) Scan

func (u *UID) Scan(src interface{}) error

func (UID) String

func (u UID) String() string

func (*UID) Value

func (u *UID) Value() (driver.Value, error)

type UIDGen

type UIDGen struct {
	// contains filtered or unexported fields
}

func New

func New(offset uint64, vt ValueType) *UIDGen

func (*UIDGen) Parse

func (g *UIDGen) Parse(s string) (UID, bool)

func (*UIDGen) UID

func (g *UIDGen) UID() UID

type ValueType

type ValueType uint8
const (
	BINARY16 ValueType = iota
	VARCHAR26
)

Jump to

Keyboard shortcuts

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