params

package
v0.0.0-...-8d52960 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: GPL-3.0 Imports: 6 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

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

func (Params) GetBoolList

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

func (Params) GetFirst

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

func (Params) GetFirstBool

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

func (Params) GetFirstBoolList

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

func (Params) GetFirstFloat

func (p Params) GetFirstFloat(keys ...string) (float64, error)

func (Params) GetFirstFloatList

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

func (Params) GetFirstID

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

func (Params) GetFirstIDList

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

func (Params) GetFirstInt

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

func (Params) GetFirstIntList

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

func (Params) GetFirstList

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

func (Params) GetFirstOr

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

func (Params) GetFirstOrBool

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

func (Params) GetFirstOrBoolList

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

func (Params) GetFirstOrFloat

func (p Params) GetFirstOrFloat(or float64, keys ...string) float64

func (Params) GetFirstOrFloatList

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

func (Params) GetFirstOrID

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

func (Params) GetFirstOrIDList

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

func (Params) GetFirstOrInt

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

func (Params) GetFirstOrIntList

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

func (Params) GetFirstOrList

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

func (Params) GetFirstOrTime

func (p Params) GetFirstOrTime(or time.Time, keys ...string) time.Time

func (Params) GetFirstTime

func (p Params) GetFirstTime(keys ...string) (time.Time, error)

func (Params) GetFloat

func (p Params) GetFloat(key string) (float64, error)

func (Params) GetFloatList

func (p Params) GetFloatList(key string) ([]float64, error)

func (Params) GetID

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

func (Params) GetIDList

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

func (Params) GetInt

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

func (Params) GetIntList

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

func (Params) GetList

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

func (Params) GetOr

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

func (Params) GetOrBool

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

func (Params) GetOrBoolList

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

func (Params) GetOrFloat

func (p Params) GetOrFloat(key string, or float64) float64

func (Params) GetOrFloatList

func (p Params) GetOrFloatList(key string, or []float64) []float64

func (Params) GetOrID

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

func (Params) GetOrIDList

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

func (Params) GetOrInt

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

func (Params) GetOrIntList

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

func (Params) GetOrList

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

func (Params) GetOrTime

func (p Params) GetOrTime(key string, or time.Time) time.Time

func (Params) GetTime

func (p Params) GetTime(key string) (time.Time, error)

Jump to

Keyboard shortcuts

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