guid

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Overview

Package guid implements YT flavor of uuid-s.

Unfortunately YT uses non standard text representation. Because of this we can't use gofrs/uuid directly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GUID

type GUID uuid.UUID

GUID is 16-byte value.

func FromHalves

func FromHalves(a, b uint64) (g GUID)

func FromParts

func FromParts(a, b, c, d uint32) (g GUID)

func New

func New() GUID

func ParseString

func ParseString(s string) (g GUID, err error)

func (GUID) Halves

func (g GUID) Halves() (a, b uint64)

func (GUID) HexString

func (g GUID) HexString() string

func (GUID) MarshalText

func (g GUID) MarshalText() ([]byte, error)

func (GUID) MarshalYSON

func (g GUID) MarshalYSON(w *yson.Writer) error

func (GUID) Parts

func (g GUID) Parts() (a, b, c, d uint32)

func (GUID) String

func (g GUID) String() string

func (*GUID) UnmarshalText

func (g *GUID) UnmarshalText(data []byte) (err error)

func (*GUID) UnmarshalYSON

func (g *GUID) UnmarshalYSON(data []byte) (err error)

Jump to

Keyboard shortcuts

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