guid

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL