utility

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 26 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRC32

func CRC32(value string) string

func GenerateConfirmationCode

func GenerateConfirmationCode() string

func GenerateEntityId

func GenerateEntityId() string

func GenerateHash

func GenerateHash(value, salt string) string

func GenerateRSAKeyPair

func GenerateRSAKeyPair() (string, string, error)

GenerateRSAKeyPair generates an RSA keypair of 2048 bit size using the random source random (for example, crypto/rand.Reader) and returns the private and public keys

func GenerateRandomString

func GenerateRandomString(length int) string

func GenerateUUID added in v1.6.0

func GenerateUUID() string

func GenerateUsername

func GenerateUsername(prefix string) string

func NewTimedTokenGenerator

func NewTimedTokenGenerator(duration time.Duration) system.ITimedTokenGenerator

func Repeat

func Repeat(times int, iterator func(int))

func RepeatParallel

func RepeatParallel(times int, iterator func(int))

func SanitizePhone

func SanitizePhone(phoneNumber string) string

func SetLimits

func SetLimits()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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