typex

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: Apache-2.0 Imports: 4 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"
)

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) String

func (u UUID) String() string

Jump to

Keyboard shortcuts

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