params

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 8 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 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 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 GetInt64 added in v0.4.6

func GetInt64(r *http.Request, name string, required bool) (int64, 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 GetTime

func GetTime(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)

Types

This section is empty.

Jump to

Keyboard shortcuts

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