Documentation ¶
Overview ¶
Package winguid provides conversion functions for windows GUID types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BigEndian bigEndian
BigEndian is the big-endian implementation of ByteOrder.
var LittleEndian littleEndian
LittleEndian is the little-endian implementation of ByteOrder.
var NativeEndian nativeEndian
NativeEndian is the implementation of ByteOrder that always matches the endianness of the local system.
Functions ¶
func New ¶
New converts the given string into a windows.GUID struct that is compliant with the Windows API.
The supplied string may be in any of these formats:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}
The supplied string is expected to be in hexadecimal notation with all fields in big-endian byte order. Note that some systems may supply mixed-endian or little-endian hexadecimal representations.
The conversion of the supplied string is not case-sensitive.
If the conversion fails an empty GUID will be returned.