generators

package
v0.0.0-...-dec19c8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package generators provides simple unique string generator that is internally based on uuid v4.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

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

ID is a UUIDv4 generator. UUID is returned as byte string.

func NewID

func NewID() *ID

func (*ID) Get

func (u *ID) Get() (string, error)

func (*ID) GetString

func (u *ID) GetString() (string, error)

func (*ID) GetStringOrPanic

func (u *ID) GetStringOrPanic() string

Jump to

Keyboard shortcuts

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