params

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoValues = errors.New("no values provided")
)

Functions

This section is empty.

Types

type Params

type Params url.Values

func New

func New(r *http.Request) Params

func (Params) Get

func (p Params) Get(key string) (string, error)

func (Params) GetBool added in v0.9.0

func (p Params) GetBool(key string) (bool, error)

func (Params) GetBoolList added in v0.9.0

func (p Params) GetBoolList(key string) ([]bool, error)

func (Params) GetFirst added in v0.9.0

func (p Params) GetFirst(keys ...string) (string, error)

func (Params) GetFirstBool added in v0.9.0

func (p Params) GetFirstBool(keys ...string) (bool, error)

func (Params) GetFirstBoolList added in v0.9.0

func (p Params) GetFirstBoolList(keys ...string) ([]bool, error)

func (Params) GetFirstID added in v0.9.0

func (p Params) GetFirstID(keys ...string) (specid.ID, error)

func (Params) GetFirstIDList added in v0.9.0

func (p Params) GetFirstIDList(keys ...string) ([]specid.ID, error)

func (Params) GetFirstInt added in v0.9.0

func (p Params) GetFirstInt(keys ...string) (int, error)

func (Params) GetFirstIntList added in v0.9.0

func (p Params) GetFirstIntList(keys ...string) ([]int, error)

func (Params) GetFirstList

func (p Params) GetFirstList(keys ...string) ([]string, error)

func (Params) GetFirstOr added in v0.9.0

func (p Params) GetFirstOr(or string, keys ...string) string

func (Params) GetFirstOrBool added in v0.9.0

func (p Params) GetFirstOrBool(or bool, keys ...string) bool

func (Params) GetFirstOrBoolList added in v0.9.0

func (p Params) GetFirstOrBoolList(or []bool, keys ...string) []bool

func (Params) GetFirstOrID added in v0.9.0

func (p Params) GetFirstOrID(or specid.ID, keys ...string) specid.ID

func (Params) GetFirstOrIDList added in v0.9.0

func (p Params) GetFirstOrIDList(or []specid.ID, keys ...string) []specid.ID

func (Params) GetFirstOrInt added in v0.9.0

func (p Params) GetFirstOrInt(or int, keys ...string) int

func (Params) GetFirstOrIntList added in v0.9.0

func (p Params) GetFirstOrIntList(or []int, keys ...string) []int

func (Params) GetFirstOrList added in v0.9.0

func (p Params) GetFirstOrList(or []string, keys ...string) []string

func (Params) GetID added in v0.9.0

func (p Params) GetID(key string) (specid.ID, error)

func (Params) GetIDList added in v0.9.0

func (p Params) GetIDList(key string) ([]specid.ID, error)

func (Params) GetInt

func (p Params) GetInt(key string) (int, error)

func (Params) GetIntList added in v0.9.0

func (p Params) GetIntList(key string) ([]int, error)

func (Params) GetList added in v0.9.0

func (p Params) GetList(key string) ([]string, error)

func (Params) GetOr

func (p Params) GetOr(key string, or string) string

func (Params) GetOrBool added in v0.9.0

func (p Params) GetOrBool(key string, or bool) bool

func (Params) GetOrBoolList added in v0.9.0

func (p Params) GetOrBoolList(key string, or []bool) []bool

func (Params) GetOrID added in v0.9.0

func (p Params) GetOrID(key string, or specid.ID) specid.ID

func (Params) GetOrIDList added in v0.9.0

func (p Params) GetOrIDList(key string, or []specid.ID) []specid.ID

func (Params) GetOrInt added in v0.9.0

func (p Params) GetOrInt(key string, or int) int

func (Params) GetOrIntList added in v0.9.0

func (p Params) GetOrIntList(key string, or []int) []int

func (Params) GetOrList added in v0.9.0

func (p Params) GetOrList(key string, or []string) []string

Jump to

Keyboard shortcuts

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