gouuidtools

package module
v0.0.0-...-125d412 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: GPL-3.0 Imports: 6 Imported by: 4 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

I needed my own UUID tools implimentation for my own specific purposes

so here it is

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNil

func IsNil(val *UUID) bool

Types

type UUID

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

func NewUUIDFromByteArray

func NewUUIDFromByteArray(val [16]byte) *UUID

func NewUUIDFromByteSlice

func NewUUIDFromByteSlice(val []byte) (*UUID, error)

func NewUUIDFromRandom

func NewUUIDFromRandom() (*UUID, error)

func NewUUIDFromString

func NewUUIDFromString(val string) (*UUID, error)

returns errors only if parse failed.

func NewUUIDNil

func NewUUIDNil() *UUID

func (*UUID) ByteArray

func (self *UUID) ByteArray() [16]byte

func (*UUID) ByteSlice

func (self *UUID) ByteSlice() []byte

func (*UUID) Equal

func (self *UUID) Equal(val *UUID) bool

func (*UUID) EqualByteArray

func (self *UUID) EqualByteArray(val [16]byte) bool

func (*UUID) EqualByteSlice

func (self *UUID) EqualByteSlice(val []byte) bool

func (*UUID) Format

func (self *UUID) Format() string

func (*UUID) FormatNoMinuses

func (self *UUID) FormatNoMinuses() string

func (*UUID) GetVersion

func (self *UUID) GetVersion() byte

func (*UUID) IsNil

func (self *UUID) IsNil() bool

func (*UUID) SetVersion

func (self *UUID) SetVersion(val byte) error

type UUIDRegistry

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

func NewUUIDRegistry

func NewUUIDRegistry() (*UUIDRegistry, error)

func (*UUIDRegistry) GenUUID

func (self *UUIDRegistry) GenUUID() (*UUID, error)

func (*UUIDRegistry) Register

func (self *UUIDRegistry) Register(val *UUID)

func (*UUIDRegistry) Registered

func (self *UUIDRegistry) Registered(val *UUID) bool

func (*UUIDRegistry) Unregister

func (self *UUIDRegistry) Unregister(val *UUID)

Directories

Path Synopsis
tests
test_01 module

Jump to

Keyboard shortcuts

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