googleuuid

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeHex

func EncodeHex(dst []byte, uuid [16]byte)

var buf [36]byte; encodeHex(buf[:], [16]byte{...}); string(buf[:])

func Parse

func Parse(s string) (uuid [16]byte, err error)

func ParseBytes

func ParseBytes(b []byte) (uuid [16]byte, err error)

ParseBytes decodes b into a UUID or returns an error. Both the UUID form of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx and urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx are decoded.

Types

This section is empty.

Jump to

Keyboard shortcuts

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