helper

package
v0.0.0-...-e2b7729 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomID

func GenerateRandomID() int

func GenerateToken

func GenerateToken() string

Generate token for admin role : Full Access

func NewFiberCtx

func NewFiberCtx() *fiber.Ctx

NewFiberCtx func create new fiber.Ctx used for testing handler like controller and middleware.

func RandomEmail

func RandomEmail() string

RandomEmail func return a email used for testing and any needs.

func RandomIPAddress

func RandomIPAddress() string

RandomIPAddress func return a IP Address used for testing and any needs.

func RandomString

func RandomString(n uint) string

RandomString func generate random string used for testing and any needs.

func RandomWords

func RandomWords(n int) string

func ToTitle

func ToTitle(s string) string

ToTitle func make string to Title Case Example : Your name => Your Name

func ValidateEmails

func ValidateEmails(emails ...string) error

ValidateEmails func validates emails

Types

This section is empty.

Jump to

Keyboard shortcuts

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