uuid

package module
v0.0.0-...-7f4b15c Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2013 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Universally Unique IDentifier (UUID).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitState

func InitState()

Types

type Uuid

type Uuid []byte

func Make

func Make() Uuid

func MakeV4

func MakeV4() Uuid

Make Version 4 (random data based) UUID.

func MustParse

func MustParse(str string) Uuid

func NewPopulatedUuid

func NewPopulatedUuid(r int63) *Uuid

func Parse

func Parse(str string) (Uuid, error)

func RandV4

func RandV4(r int63) Uuid

func (Uuid) Compare

func (this Uuid) Compare(other Uuid) int

func (Uuid) Equal

func (uuid Uuid) Equal(other Uuid) bool

func (Uuid) Key

func (uuid Uuid) Key() UuidKey

func (Uuid) Less

func (uuid Uuid) Less(other Uuid) bool

func (Uuid) Marshal

func (uuid Uuid) Marshal() ([]byte, error)

func (Uuid) MarshalJSON

func (uuid Uuid) MarshalJSON() ([]byte, error)

func (Uuid) MarshalTo

func (uuid Uuid) MarshalTo(data []byte) (n int, err error)

func (Uuid) RandV4

func (uuid Uuid) RandV4(r int63)

func (*Uuid) Size

func (uuid *Uuid) Size() int

func (Uuid) String

func (uuid Uuid) String() string

func (Uuid) Uint64

func (uuid Uuid) Uint64() uint64

func (*Uuid) Unmarshal

func (uuid *Uuid) Unmarshal(data []byte) error

func (*Uuid) UnmarshalJSON

func (uuid *Uuid) UnmarshalJSON(data []byte) error

func (Uuid) Version

func (uuid Uuid) Version() int

type UuidKey

type UuidKey [16]byte

func (UuidKey) Compare

func (this UuidKey) Compare(other UuidKey) int

func (UuidKey) MarshalJSON

func (key UuidKey) MarshalJSON() ([]byte, error)

func (UuidKey) String

func (key UuidKey) String() string

func (UuidKey) Uuid

func (key UuidKey) Uuid() Uuid

type Uuids

type Uuids []Uuid

func (Uuids) Len

func (ids Uuids) Len() int

func (Uuids) Less

func (ids Uuids) Less(i, j int) bool

func (Uuids) Swap

func (ids Uuids) Swap(i, j int)

Jump to

Keyboard shortcuts

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