Documentation
¶
Index ¶
Constants ¶
View Source
const (
// EncodedSize is the length of the text of the encoded UUID
EncodedSize = 36
)
Variables ¶
View Source
var ( // Empty UUID is a UUID that is considered empty. Empty = UUID([EncodedSize]byte{}) )
Functions ¶
This section is empty.
Types ¶
type UUID ¶
type UUID [EncodedSize]byte
UUID represents identifiers for content, resources and users
func MustNewWithRand ¶
MustNewWithRand create a UUID or panics on error
func NewWithRand ¶
NewWithRand generates a UUID from a random UUID source
func ParseBytes ¶
ParseBytes attempts to parse an id and return a UUID, or returns an error on failure.
func (UUID) MarshalJSON ¶
MarshalJSON converts a UUID into a serialisable json format
func (*UUID) UnmarshalJSON ¶
UnmarshalJSON unserialises the json format and converts it into a UUID
Click to show internal directories.
Click to hide internal directories.