helpers

package
v0.0.0-...-75d87db Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(toValue interface{}, fromValue interface{}) error

Copy value as json

func GenID

func GenID() string

func GenerateRandomNumber

func GenerateRandomNumber(len int) int

func GetLangFromContext

func GetLangFromContext(ctx context.Context) string

get lang from context

func IsValidEmail

func IsValidEmail(email string) bool

IsValidEmail : email

func JSONRequest

func JSONRequest(_ context.Context, url, method string, body interface{}, headers map[string]string) (*http.Response, error)

JSONRequest :

func ToSlug

func ToSlug(s string) string

ToSlug : string

Types

This section is empty.

Jump to

Keyboard shortcuts

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