utils

package
v0.0.0-...-40b02db Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindValidateStruct

func BindValidateStruct(ctx echo.Context, i interface{}, function string) error

func GenerateRandomNumber

func GenerateRandomNumber(n int) string

func GenerateRandomString

func GenerateRandomString(n int) string

func QueryFill

func QueryFill(query string) (new string)

func ReplaceSQL

func ReplaceSQL(old, searchPattern string) string

func ResponseJSON

func ResponseJSON(success bool, code string, msg string, result interface{}) models.Response

func TimeStampNow

func TimeStampNow() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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