uuid

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUID

type UUID struct {
	// contains filtered or unexported fields
}

func FromB58

func FromB58(src []byte) (uuid UUID)

func FromB58Hlf

func FromB58Hlf(src []byte) (uuid UUID)

func FromB64

func FromB64(src []byte) (uuid UUID)

func FromB64Hlf

func FromB64Hlf(src []byte) (uuid UUID)

func FromStd

func FromStd(src []byte) (uuid UUID)

func Parse

func Parse(s string) (UUID, error)

func ParseB58

func ParseB58(s string) (UUID, error)

func ParseB58Hlf

func ParseB58Hlf(s string) (UUID, error)

func ParseB64

func ParseB64(s string) (UUID, error)

func ParseB64Hlf

func ParseB64Hlf(s string) (UUID, error)

func ParseStd

func ParseStd(s string) (UUID, error)

func Random

func Random() UUID

func RandomB58

func RandomB58() UUID

func RandomB58Hlf

func RandomB58Hlf() UUID

func RandomB64

func RandomB64() UUID

func RandomB64Hlf

func RandomB64Hlf() UUID

func (UUID) Bytes

func (id UUID) Bytes() []byte

func (UUID) Compare

func (id UUID) Compare(id2 UUID) int

func (UUID) HighDigit

func (id UUID) HighDigit() uint64

func (UUID) IsFull

func (id UUID) IsFull() bool

func (UUID) IsValid

func (id UUID) IsValid() bool

func (UUID) LowDigit

func (id UUID) LowDigit() uint64

func (UUID) MarshalBinary

func (id UUID) MarshalBinary() ([]byte, error)

func (UUID) MarshalJSON

func (id UUID) MarshalJSON() ([]byte, error)

func (UUID) MarshalText

func (id UUID) MarshalText() ([]byte, error)

func (UUID) String

func (id UUID) String() string

func (UUID) String58

func (id UUID) String58() string

func (UUID) String58Hlf

func (id UUID) String58Hlf() string

func (UUID) String64

func (id UUID) String64() string

func (UUID) String64Hlf

func (id UUID) String64Hlf() string

func (UUID) StringStd

func (id UUID) StringStd() string

func (*UUID) UnmarshalBinary

func (id *UUID) UnmarshalBinary(data []byte) error

func (*UUID) UnmarshalJSON

func (id *UUID) UnmarshalJSON(data []byte) error

func (*UUID) UnmarshalText

func (id *UUID) UnmarshalText(b []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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