Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
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.
Click to show internal directories.
Click to hide internal directories.