urlparam

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOptions

func GetOptions(options map[Param]interface{}) (offset *int, limit *int, cstart *int, cstop *int, orderby *string, order *string, latestn *int, latestnons []string, count bool)

Types

type Param

type Param string

Param is the URL parameter

const (
	ParamOffset        Param = "offset"
	ParamLimit         Param = "limit"
	ParamOrder         Param = "order"
	ParamOrderBy       Param = "orderby"
	ParamLatestN       Param = "latestn"
	ParamLatestNOn     Param = "latestnon"
	ParamCstart        Param = "cstart"
	ParamCstop         Param = "cstop"
	ParamHasTotalCount Param = "totalcount"
	ParamOtherQueries  Param = "better_otherqueries"
)

Jump to

Keyboard shortcuts

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