params

package
v0.8.12 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

func GetBool added in v0.4.6

func GetBool(r *http.Request, name string, required bool) (bool, bool, error)

func GetBoolCookie added in v0.8.4

func GetBoolCookie(r *http.Request, name string, required bool) (bool, bool, error)

func GetBoolHeader added in v0.8.4

func GetBoolHeader(r *http.Request, name string, required bool) (bool, bool, error)

func GetBoolPath added in v0.8.4

func GetBoolPath(r *http.Request, name string, required bool) (bool, bool, error)

func GetBoolQuery added in v0.8.4

func GetBoolQuery(r *http.Request, name string, required bool) (bool, bool, error)

func GetEnum added in v0.4.10

func GetEnum[T comparable](r *http.Request, name string, required bool, parser func(string) T) (T, bool, error)

func GetEnumArray added in v0.4.11

func GetEnumArray[T comparable](
	r *http.Request, name string, required bool, parser func(string) T,
) ([]T, bool, error)

func GetEnumArrayCookie added in v0.8.4

func GetEnumArrayCookie[T comparable](
	r *http.Request, name string, required bool, parser func(string) T,
) ([]T, bool, error)

func GetEnumArrayHeader added in v0.8.4

func GetEnumArrayHeader[T comparable](
	r *http.Request, name string, required bool, parser func(string) T,
) ([]T, bool, error)

func GetEnumArrayPath added in v0.8.4

func GetEnumArrayPath[T comparable](
	r *http.Request, name string, required bool, parser func(string) T,
) ([]T, bool, error)

func GetEnumArrayQuery added in v0.8.4

func GetEnumArrayQuery[T comparable](
	r *http.Request, name string, required bool, parser func(string) T,
) ([]T, bool, error)

func GetEnumCookie added in v0.8.4

func GetEnumCookie[T comparable](r *http.Request, name string, required bool, parser func(string) T) (T, bool, error)

func GetEnumHeader added in v0.8.4

func GetEnumHeader[T comparable](r *http.Request, name string, required bool, parser func(string) T) (T, bool, error)

func GetEnumPath added in v0.8.4

func GetEnumPath[T comparable](r *http.Request, name string, required bool, parser func(string) T) (T, bool, error)

func GetEnumQuery added in v0.8.4

func GetEnumQuery[T comparable](r *http.Request, name string, required bool, parser func(string) T) (T, bool, error)

func GetInt

func GetInt(r *http.Request, name string, required bool) (int, bool, error)

func GetInt32

func GetInt32(r *http.Request, name string, required bool) (int32, bool, error)

func GetInt32Array

func GetInt32Array(r *http.Request, name string, required bool) ([]int32, bool, error)

func GetInt32ArrayCookie added in v0.8.4

func GetInt32ArrayCookie(r *http.Request, name string, required bool) ([]int32, bool, error)

func GetInt32ArrayHeader added in v0.8.4

func GetInt32ArrayHeader(r *http.Request, name string, required bool) ([]int32, bool, error)

func GetInt32ArrayPath added in v0.8.4

func GetInt32ArrayPath(r *http.Request, name string, required bool) ([]int32, bool, error)

func GetInt32ArrayQuery added in v0.8.4

func GetInt32ArrayQuery(r *http.Request, name string, required bool) ([]int32, bool, error)

func GetInt32Cookie added in v0.8.4

func GetInt32Cookie(r *http.Request, name string, required bool) (int32, bool, error)

func GetInt32Header added in v0.8.4

func GetInt32Header(r *http.Request, name string, required bool) (int32, bool, error)

func GetInt32Path added in v0.8.4

func GetInt32Path(r *http.Request, name string, required bool) (int32, bool, error)

func GetInt32Query added in v0.8.4

func GetInt32Query(r *http.Request, name string, required bool) (int32, bool, error)

func GetInt64 added in v0.4.6

func GetInt64(r *http.Request, name string, required bool) (int64, bool, error)

func GetInt64Cookie added in v0.8.4

func GetInt64Cookie(r *http.Request, name string, required bool) (int64, bool, error)

func GetInt64Header added in v0.8.4

func GetInt64Header(r *http.Request, name string, required bool) (int64, bool, error)

func GetInt64Path added in v0.8.4

func GetInt64Path(r *http.Request, name string, required bool) (int64, bool, error)

func GetInt64Query added in v0.8.4

func GetInt64Query(r *http.Request, name string, required bool) (int64, bool, error)

func GetIntCookie added in v0.8.4

func GetIntCookie(r *http.Request, name string, required bool) (int, bool, error)

func GetIntHeader added in v0.8.4

func GetIntHeader(r *http.Request, name string, required bool) (int, bool, error)

func GetIntPath added in v0.8.4

func GetIntPath(r *http.Request, name string, required bool) (int, bool, error)

func GetIntQuery added in v0.8.4

func GetIntQuery(r *http.Request, name string, required bool) (int, bool, error)

func GetString

func GetString(r *http.Request, name string, required bool) (string, bool, error)

func GetStringArray

func GetStringArray(r *http.Request, name string, required bool) ([]string, bool, error)

func GetStringArrayCookie added in v0.8.4

func GetStringArrayCookie(r *http.Request, name string, required bool) ([]string, bool, error)

func GetStringArrayHeader added in v0.8.4

func GetStringArrayHeader(r *http.Request, name string, required bool) ([]string, bool, error)

func GetStringArrayPath added in v0.8.4

func GetStringArrayPath(r *http.Request, name string, required bool) ([]string, bool, error)

func GetStringArrayQuery added in v0.8.4

func GetStringArrayQuery(r *http.Request, name string, required bool) ([]string, bool, error)

func GetStringCookie added in v0.8.4

func GetStringCookie(r *http.Request, name string, required bool) (string, bool, error)

func GetStringHeader added in v0.8.4

func GetStringHeader(r *http.Request, name string, required bool) (string, bool, error)

func GetStringPath added in v0.8.4

func GetStringPath(r *http.Request, name string, required bool) (string, bool, error)

func GetStringQuery added in v0.8.4

func GetStringQuery(r *http.Request, name string, required bool) (string, bool, error)

func GetTime

func GetTime(r *http.Request, name string, required bool) (time.Time, bool, error)

func GetTimeCookie added in v0.8.4

func GetTimeCookie(r *http.Request, name string, required bool) (time.Time, bool, error)

func GetTimeHeader added in v0.8.4

func GetTimeHeader(r *http.Request, name string, required bool) (time.Time, bool, error)

func GetTimePath added in v0.8.4

func GetTimePath(r *http.Request, name string, required bool) (time.Time, bool, error)

func GetTimeQuery added in v0.8.4

func GetTimeQuery(r *http.Request, name string, required bool) (time.Time, bool, error)

func GetUUID added in v0.5.2

func GetUUID(r *http.Request, name string, required bool) (uuid.UUID, bool, error)

func GetUUIDArray added in v0.8.9

func GetUUIDArray(r *http.Request, name string, required bool) ([]uuid.UUID, bool, error)

func GetUUIDArrayCookie added in v0.8.9

func GetUUIDArrayCookie(r *http.Request, name string, required bool) ([]uuid.UUID, bool, error)

func GetUUIDArrayHeader added in v0.8.9

func GetUUIDArrayHeader(r *http.Request, name string, required bool) ([]uuid.UUID, bool, error)

func GetUUIDArrayPath added in v0.8.9

func GetUUIDArrayPath(r *http.Request, name string, required bool) ([]uuid.UUID, bool, error)

func GetUUIDArrayQuery added in v0.8.9

func GetUUIDArrayQuery(r *http.Request, name string, required bool) ([]uuid.UUID, bool, error)

func GetUUIDCookie added in v0.8.4

func GetUUIDCookie(r *http.Request, name string, required bool) (uuid.UUID, bool, error)

func GetUUIDHeader added in v0.8.4

func GetUUIDHeader(r *http.Request, name string, required bool) (uuid.UUID, bool, error)

func GetUUIDPath added in v0.8.4

func GetUUIDPath(r *http.Request, name string, required bool) (uuid.UUID, bool, error)

func GetUUIDQuery added in v0.8.4

func GetUUIDQuery(r *http.Request, name string, required bool) (uuid.UUID, bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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