typex

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 5 Imported by: 5

README

typex - Types Extended

Some useful business-logic types

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUUIDInvalid = errx.New("invalid uuid")
	ErrUUIDEmpty   = errx.New("empty uuid")
)
View Source
var (
	MsgUUIDInvalid = "Некорректный UUIDv4: `%s`"
	MsgUUIDEmpty   = "Пустой UUIDv4"
)
View Source
var ZeroUUID = make(UUID, 16)

ZeroUUID - пустой UUID, 16 нулей

Functions

This section is empty.

Types

type UUID

type UUID []byte

UUID - unique identifier according RFC4122

func NewUUID

func NewUUID() UUID

func ParseUUID

func ParseUUID(id string) (_ UUID, err error)

func (UUID) Hex

func (u UUID) Hex() string

func (UUID) IsEmpty added in v1.0.1

func (u UUID) IsEmpty() bool

func (UUID) String

func (u UUID) String() string

Jump to

Keyboard shortcuts

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