uuid

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUUID

func IsUUID(c rune) bool

Types

type UUID

type UUID struct {
	TimeLow               uint32
	TimeMid               uint16
	TimeHiAndVersion      uint16
	ClockSeqHiAndReserved uint8
	ClockSeqLow           uint8
	Node                  [6]byte
}

func MustParse

func MustParse(in string) *UUID

func New

func New(low uint32, mid, hiAndVers uint16, clockSeqHi, clockSeqLow uint8, node [6]byte) *UUID

func Parse

func Parse(in string) (*UUID, error)

func Unmarshal

func Unmarshal(in string) (*UUID, error)

func (*UUID) DecodeBinary

func (u *UUID) DecodeBinary(b []byte) error

func (*UUID) EncodeBinary

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

func (*UUID) Equals

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

func (*UUID) MarshalJSON

func (u *UUID) MarshalJSON() ([]byte, error)

func (*UUID) Read

func (u *UUID) Read(r io.Reader) error

func (*UUID) String

func (u *UUID) String() string

func (*UUID) Write

func (u *UUID) Write(w io.Writer) error

Jump to

Keyboard shortcuts

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