utils

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInt64OrError

func GetInt64OrError(s string) (int64, error)

func IsNumeric

func IsNumeric(s string) bool

func RandomEmail

func RandomEmail() string

func RandomInt

func RandomInt(min, max int64) int64

Generate a random number between min and max

func RandomNumberAsString

func RandomNumberAsString(digits int) string

func RandomPassword

func RandomPassword() string

func RandomString

func RandomString(n int) string

Generate a random string of length len

func RandomSymbols

func RandomSymbols(n int) string

Generate a random symbols of length len

func RandomUUID

func RandomUUID() uuid.UUID

func RandomUserName

func RandomUserName() string

func ToInt32

func ToInt32(s string) (int32, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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