urlparams

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 5 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 AddToCtx

func AddToCtx(r *http.Request, params map[string]string) context.Context

func Int

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

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