utils

package
v0.0.0-...-a805b3f Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrenteDate

func GetCurrenteDate() (time.Time, error)

Get the current date

func ParseAndValidateBodyParams

func ParseAndValidateBodyParams(bodyParser func(out interface{}) error, params interface{}) error

Parse and validate body params

func RandomInt

func RandomInt(min int, max int) int

Generates a random int between min and max

func RandomRune

func RandomRune() rune

Generates a random rune

func RandomString

func RandomString(size int) string

Generates a random String

Types

This section is empty.

Jump to

Keyboard shortcuts

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