gen

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	LettersLetter          = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
	LettersUpperCaseLetter = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	LettersLowwerLetters   = "abcdefghijklmnopqrstuvwxyz"
	LettersNumber          = "0123456789"
	LettersNumberNoZero    = "123456789"
	LettersSymbol          = "~`!@#$%^&*()_-+={[}]|\\:;\"'<,>.?/"
)

Variables

This section is empty.

Functions

func RandBytes

func RandBytes(length int) []byte

func RandInt

func RandInt(min, max int64) int64

func RandString

func RandString(n int, letters ...string) (string, error)

func RandUniqueIntSlice

func RandUniqueIntSlice(n, min, max int) []int

func Uuid

func Uuid() string

func UuidNoSeparator

func UuidNoSeparator() string

func UuidShort

func UuidShort() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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