requestutil

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const FALSEString = "FALSE"

FALSEString for false string

View Source
const TRUEString = "TRUE"

TRUEString for true string

Variables

This section is empty.

Functions

func ConvertBoolenFromString

func ConvertBoolenFromString(value string, defaultValue bool) bool

ConvertBoolenFromString get bool value from string value

func GetDateRangeFromURLQuery

func GetDateRangeFromURLQuery(c *gin.Context, maxIntervalDay int64) (int64, int64, error)

GetDateRangeFromURLQuery fetch startDate and endDate from url querystring

func GetPageInfo

func GetPageInfo(c *gin.Context, maxRows int) (int, int, error)

GetPageInfo fetch pageNo & pageRow in url querystring

func GetQueryBool

func GetQueryBool(c *gin.Context, key string, defaultValue bool) bool

GetQueryBool get bool value from url querystring

func GetQueryDate

func GetQueryDate(c *gin.Context, key string, defaultValue time.Time) time.Time

GetQueryDate get datetime value from url querystring

func GetQueryInt

func GetQueryInt(c *gin.Context, key string, defaultValue int) int

GetQueryInt get int value from url querystring

func GetQueryInt64

func GetQueryInt64(c *gin.Context, key string, defaultValue int64) int64

GetQueryInt64 get int64 value from url querystring

Types

This section is empty.

Jump to

Keyboard shortcuts

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