README ¶ uuid This is just a sql BINARY(16) compatible type 4 UUID. Currently it is just a new type definition delegating to google/uuid but introduces BINARY(16) sql Scanner support. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type UUID func MustParse(str string) UUID func New() UUID func Parse(str string) (UUID, error) func (u UUID) MarshalText() ([]byte, error) func (u *UUID) Scan(src interface{}) error func (u UUID) String() string func (u *UUID) UnmarshalText(data []byte) error 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 ¶ type UUID uuid.UUID func MustParse ¶ func MustParse(str string) UUID func New ¶ func New() UUID func Parse ¶ func Parse(str string) (UUID, error) func (UUID) MarshalText ¶ func (u UUID) MarshalText() ([]byte, error) func (*UUID) Scan ¶ func (u *UUID) Scan(src interface{}) error func (UUID) String ¶ func (u UUID) String() string func (*UUID) UnmarshalText ¶ func (u *UUID) UnmarshalText(data []byte) error UnmarshalText implements encoding.TextUnmarshaler. func (UUID) Value ¶ func (u UUID) Value() (driver.Value, error) Source Files ¶ View all Source files uuid.go Click to show internal directories. Click to hide internal directories.