Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Nil = UUID(guuid.Nil)
Empty UUID, all zeros
Functions ¶
This section is empty.
Types ¶
type UUID ¶
func FromBytes ¶ added in v0.8.0
FromBytes creates a new UUID from a byte slice. Returns an error if the slice does not have a length of 16. The bytes are copied from the slice.
func OfflinePlayerUUID ¶ added in v0.10.0
func Parse ¶
Parse decodes s into a UUID or returns an error. Both the standard UUID forms of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx and urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx are decoded as well as the Microsoft encoding {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} and the raw hex encoding: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
func ParseBytes ¶ added in v0.8.0
ParseBytes is like Parse, except it parses a byte slice instead of a string.
func (UUID) MarshalJSON ¶ added in v0.14.0
func (UUID) String ¶
String returns the string form of uuid, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx , or "" if uuid is invalid.