Documentation
¶
Index ¶
- type UUID
- func (u UUID) Equals(other UUID) bool
- func (UUID) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (UUID) GormDataType() string
- func (u UUID) IsEmpty() bool
- func (u *UUID) IsEmptyPtr() bool
- func (u UUID) IsNil() bool
- func (u *UUID) IsNilPtr() bool
- func (u UUID) Length() int
- func (u *UUID) Scan(value interface{}) error
- func (u UUID) String() string
- func (u UUID) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UUID ¶
func NewUUIDv1 ¶
func NewUUIDv1() UUID
NewUUIDv1 generates a UUID version 1, panics on generation failure.
func NewUUIDv4 ¶
func NewUUIDv4() UUID
NewUUIDv4 generates a UUID version 4, panics on generation failure.
func (UUID) GormDBDataType ¶
GormDBDataType gorm db data type.
func (*UUID) IsEmptyPtr ¶
IsEmptyPtr returns true if caller UUID ptr is nil or it's value is empty.
Click to show internal directories.
Click to hide internal directories.