utility

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 29 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRC32

func CRC32(value string) string

func CreateThumbnail added in v1.8.8

func CreateThumbnail(inputPath string, outputPath string, maxWidth, maxHeight int) error

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 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