README ¶ ulid Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type UID func (u UID) Bytes() []byte func (u *UID) Scan(src interface{}) error func (u UID) String() string func (u *UID) Value() (driver.Value, error) type UIDGen func New(offset uint64, vt ValueType) *UIDGen func (g *UIDGen) Parse(s string) (UID, bool) func (g *UIDGen) UID() UID type ValueType 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 ) Source Files ¶ View all Source files ulid.go Click to show internal directories. Click to hide internal directories.