util

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PAGINATION_LIMIT = 50

	PAGINATION_PAGE_MIN = 1
)

Variables

This section is empty.

Functions

func ByteToString

func ByteToString(b []byte) string

func Decode64

func Decode64(s string) []byte

func Encode64

func Encode64(b []byte) string

func EncodeHex

func EncodeHex(h []byte) string

func GetIpRemoteAddr added in v0.1.3

func GetIpRemoteAddr(ctx *gin.Context) string

func ResolvePagination

func ResolvePagination(queryPage string) int

func StringToInt

func StringToInt(s string) (int, bool)

func ValidatorParamWithBetween

func ValidatorParamWithBetween(data, paramName string, min, max int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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