Documentation
¶
Index ¶
- Variables
- func B64ToUUID(b64 B64Uuid) *guuid.UUID
- type B64Uuid
- func (u *B64Uuid) IsEmpty() bool
- func (u B64Uuid) MarshalBinary() ([]byte, error)
- func (u B64Uuid) MarshalJSON() ([]byte, error)
- func (u B64Uuid) MarshalText() ([]byte, error)
- func (u *B64Uuid) Scan(src interface{}) (err error)
- func (u B64Uuid) String() string
- func (u *B64Uuid) UnmarshalBinary(inputBytes []byte) error
- func (u *B64Uuid) UnmarshalJSON(inputJsonBytes []byte) error
- func (u *B64Uuid) UnmarshalText(inputJsonBytes []byte) error
- func (u B64Uuid) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Nil = B64Uuid{}
Empty B64Uuid
Functions ¶
Types ¶
type B64Uuid ¶
func B64FromUuid ¶
B64FromUuid convert Google's UUID into B64Uuid
func NewRandom ¶
func NewRandom() B64Uuid
Random creates a random B64UUID by calling underlying Google's UUID's NewRandom()
func Parse ¶
Parse tries to parse as Base64Url formatted UUID if the string is 22 characters
When input is not 22 characters, it is passed into underlying Google's UUID type ¶
Empty string immediately results in empty B64Uuid
func (B64Uuid) MarshalBinary ¶
func (B64Uuid) MarshalJSON ¶
func (B64Uuid) MarshalText ¶
func (*B64Uuid) UnmarshalBinary ¶
func (*B64Uuid) UnmarshalJSON ¶
func (*B64Uuid) UnmarshalText ¶
Convert Inwards
Click to show internal directories.
Click to hide internal directories.