Documentation ¶
Index ¶
- Variables
- type UUID
- func (id UUID) Bytes() []byte
- func (id1 UUID) Equal(id2 UUID) bool
- func (pId *UUID) Generate(v Version) error
- func (id *UUID) GenerateV7Zero(t time.Time)
- func (id UUID) IsNil() bool
- func (id UUID) MarshalJSON() ([]byte, error)
- func (id UUID) MarshalText() ([]byte, error)
- func (pId *UUID) Parse(s string) error
- func (id *UUID) Scan(value interface{}) error
- func (id UUID) String() string
- func (pId *UUID) UnmarshalJSON(data []byte) error
- func (pId *UUID) UnmarshalText(data []byte) error
- func (id UUID) V7Time() time.Time
- func (id UUID) Value() (driver.Value, error)
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Nil = UUID{} Max = UUID{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} )
View Source
var ( ErrInvalidFormat = errors.New("invalid uuid format") ErrUnsupportedVersion = errors.New("unsupported uuid version") )
Functions ¶
This section is empty.
Types ¶
type UUID ¶
type UUID [16]byte
func GenerateV7Zero ¶
func MustGenerate ¶
func (*UUID) GenerateV7Zero ¶
func (*UUID) UnmarshalText ¶
encoding.TextUnmarshaler
Click to show internal directories.
Click to hide internal directories.