Documentation ¶ Index ¶ func GenerateBytes() (data []byte, err error) type GUID func FromBytes(data []byte) (guid GUID, err error) func FromString(g string) (guid GUID, err error) func Generate() (guid GUID, err error) func (guid GUID) String() string func (data GUID) ToByte() (output []byte, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GenerateBytes ¶ func GenerateBytes() (data []byte, err error) Types ¶ type GUID ¶ type GUID struct { Data1 uint32 Data2 uint16 Data3 uint16 Data4 [8]byte } func FromBytes ¶ func FromBytes(data []byte) (guid GUID, err error) func FromString ¶ func FromString(g string) (guid GUID, err error) func Generate ¶ func Generate() (guid GUID, err error) func (GUID) String ¶ func (guid GUID) String() string func (GUID) ToByte ¶ func (data GUID) ToByte() (output []byte, err error) Source Files ¶ View all Source files guid.go Click to show internal directories. Click to hide internal directories.