urlparams

package
v0.0.0-...-baf4ea5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrChiPanic     erro.BaseError = "chi.URLParam panic https://github.com/go-chi/chi/issues/76"
	ErrParamMissing erro.BaseError = "The URL parameter '%s' is missing"
	ErrParamNotInt  erro.BaseError = "The URL parameter '%s' has value '%s' which is not an int"
)

Variables

This section is empty.

Functions

func Int

func Int(r *http.Request, key string) (value int, err error)

func PersistentString

func PersistentString(w http.ResponseWriter, r *http.Request, key, cookiename string) (value string, err error)

func SetInt

func SetInt(r *http.Request, key string, value int) *http.Request

func SetString

func SetString(r *http.Request, key, value string) *http.Request

func String

func String(r *http.Request, key string) (value string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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