Documentation ¶ Index ¶ func Equals(uuid1, uuid2 UUID) bool func TypeMatch(this interface{}, that interface{}) bool type UUID func NewUUID() UUID func UUIDFromString(s string) UUID func (id UUID) Scan(val interface{}) error func (i UUID) String() string func (id UUID) Value() (driver.Value, error) type Url func NewUrl(s string) *Url func (u *Url) MarshalJSON() ([]byte, error) func (u *Url) String() string func (u *Url) UnmarshalJSON(ss []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Equals ¶ func Equals(uuid1, uuid2 UUID) bool func TypeMatch ¶ func TypeMatch(this interface{}, that interface{}) bool A simple check of type comparison. Ptr to a struct and struct are considered compatible. This is useful mostly for the cases where we have interface implementations Types ¶ type UUID ¶ type UUID uuid.UUID func NewUUID ¶ func NewUUID() UUID func UUIDFromString ¶ func UUIDFromString(s string) UUID func (UUID) Scan ¶ func (id UUID) Scan(val interface{}) error func (UUID) String ¶ func (i UUID) String() string func (UUID) Value ¶ func (id UUID) Value() (driver.Value, error) For custom mapping to sql data base type Url ¶ type Url url.URL func NewUrl ¶ func NewUrl(s string) *Url func (*Url) MarshalJSON ¶ func (u *Url) MarshalJSON() ([]byte, error) func (*Url) String ¶ func (u *Url) String() string func (*Url) UnmarshalJSON ¶ func (u *Url) UnmarshalJSON(ss []byte) error Source Files ¶ View all Source files typecheck.go url.go uuid.go Click to show internal directories. Click to hide internal directories.