Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GUID ¶
GUID represents a GUID/UUID. It has the same structure as golang.org/x/sys/windows.GUID so that it can be used with functions expecting that type. It is defined as its own type so that stringification and marshaling can be supported. The representation matches that used by native Windows code.
func FromString ¶
FromString parses a string containing a GUID and returns the GUID. The only format currently supported is the `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` format.
func (*GUID) MarshalJSON ¶
MarshalJSON marshals the GUID to JSON representation and returns it as a slice of bytes.
func (*GUID) UnmarshalJSON ¶
UnmarshalJSON unmarshals a GUID from JSON representation and sets itself to the unmarshaled GUID.