gen

package module
v0.0.0-...-2521013 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 5 Imported by: 0

README

gen-str

line generation by conditions

git

go get https://github.com/inkochetkov/gen-str/pkg/gen

exmple

str := gen.GenRandomStrRune(1) log.Println(str)

str = gen.GenRandomStrSpec(3) log.Println(str)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenFloat

func GenFloat() float64

GenNamber random float

func GenIntDiapason

func GenIntDiapason(a, b int) int

GenIntDiapason random number between two

func GenNamber

func GenNamber() int

GenNamber random number

func GenPassword

func GenPassword(password string) (string, error)

func GenRandomStrRune

func GenRandomStrRune(length int) string

GenRandomStrRune generate string based on string length

func GenRandomStrSpec

func GenRandomStrSpec(length int) string

GenRandomStrSpec generate string based on string length using special characters

func GenUUID

func GenUUID() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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