Documentation ¶
Index ¶
- Constants
- type ULID
- func (ulid ULID) Bytes() []byte
- func (ulid ULID) Equal(other ULID) bool
- func (ulid ULID) MarshalBinary() ([]byte, error)
- func (ulid ULID) MarshalText() ([]byte, error)
- func (ulid *ULID) Scan(src interface{}) (err error)
- func (ulid ULID) String() string
- func (ulid ULID) UUIDString() string
- func (ulid *ULID) UnmarshalText(data []byte) error
- func (ulid ULID) Value() (driver.Value, error)
Constants ¶
View Source
const ( Size = 16 StringSize = 26 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ULID ¶
TODO
var (
Nil ULID
)
func ParseBytes ¶
func (ULID) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler.
func (ULID) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*ULID) Scan ¶
TODO: improve Scan implements sql.Scanner so ULIDs can be read from databases transparently. Currently, database types that map to string and []byte are supported. Please consult database-specific driver documentation for matching types.
func (ULID) UUIDString ¶
UUIDString returns the UUID string form of ulid, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
func (*ULID) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
Click to show internal directories.
Click to hide internal directories.