core: Index | Files

package uuid

import ""


Package Files


type UUID Uses

type UUID [16]byte

func New Uses

func New() UUID

New creates a UUID with random value.

func ParseBytes Uses

func ParseBytes(b []byte) (UUID, error)

ParseBytes converts a UUID in byte form to object.

func ParseString Uses

func ParseString(str string) (UUID, error)

ParseString converts a UUID in string form to object.

func (*UUID) Bytes Uses

func (u *UUID) Bytes() []byte

Bytes returns the bytes representation of this UUID.

func (*UUID) Equals Uses

func (u *UUID) Equals(another *UUID) bool

Equals returns true if this UUID equals another UUID by value.

func (*UUID) String Uses

func (u *UUID) String() string

String returns the string representation of this UUID.

Package uuid imports 5 packages (graph) and is imported by 24 packages. Updated 2019-02-23. Refresh now. Tools for package owners.