README ¶ uidgen go get -u github.com/codemodus/uidgen Usage 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 type ValueType uint8 const ( BINARY16 ValueType = iota VARCHAR26 ) 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 } UID ... func (UID) Bytes ¶ func (u UID) Bytes() []byte Bytes ... func (*UID) Scan ¶ func (u *UID) Scan(src interface{}) error Scan ... func (UID) String ¶ func (u UID) String() string func (*UID) Value ¶ func (u *UID) Value() (driver.Value, error) Value ... type UIDGen ¶ type UIDGen struct { // contains filtered or unexported fields } UIDGen ... func New ¶ func New(offset uint64, vt ValueType) *UIDGen New ... func (*UIDGen) Parse ¶ func (g *UIDGen) Parse(s string) (UID, bool) Parse ... func (*UIDGen) UID ¶ func (g *UIDGen) UID() UID UID ... type ValueType ¶ type ValueType uint8 ValueType ... const ( BINARY16 ValueType = iota VARCHAR26 ) ValueType constants ... Source Files ¶ View all Source files uidgen.go Click to show internal directories. Click to hide internal directories.