util

package
v0.0.0-...-e7c2cf1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDefaultImage

func CreateDefaultImage(width, height int) *image.RGBA

func RandDOB

func RandDOB(minYear, maxYear int64) time.Time

func RandDOBString

func RandDOBString(minYear, maxYear int64) string

func RandomBool

func RandomBool() bool

func RandomEmail

func RandomEmail(n int) string

func RandomInt

func RandomInt(min, max int64) int64

func RandomLat

func RandomLat() float64

func RandomLng

func RandomLng() float64

func RandomPoint

func RandomPoint(precision int) string

func RandomString

func RandomString(n int) string

func RandomToken

func RandomToken(secret string, expires time.Duration) (string, error)

func RandomUUID

func RandomUUID() string

func ReadJSONDecoderErr

func ReadJSONDecoderErr(err error) error

func ReadValidationErr

func ReadValidationErr(err error, validation map[string]string) map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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