httpparam

package
v0.0.0-...-7c5fa43 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFoundPathParam  = errors.New("http: not found path param")
	ErrNotFoundQueryParam = errors.New("http: not found query parau")
)

Functions

func PathParam

func PathParam[T uint64 | string](r *http.Request, param string) (T, error)

func QueryParam

func QueryParam[T any](r *http.Request, key string) (T, error)

func QueryParams

func QueryParams[T any](r *http.Request, key string) ([]T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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