utils

package
v0.0.0-...-b9d6e19 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatDate     = "2006-01-02"
	FormatDateTime = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func Bytes2String

func Bytes2String(bytes []byte) string

func Get

func Get[T any](ctx *gin.Context, key string) (t T, ok bool)

func MustGet

func MustGet[T any](ctx *gin.Context, key string) (t T)

func ParamUint32

func ParamUint32(ctx *gin.Context, key string) (uint32, error)

func QueryInt

func QueryInt(ctx *gin.Context, key string) (int, error)

func QueryUint32

func QueryUint32(ctx *gin.Context, key string) (uint32, error)

func String2Bytes

func String2Bytes(str string) []byte

func VerifyEmailFormat

func VerifyEmailFormat(email string) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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