Documentation ¶
Index ¶
- func BoolFromForm(r FormValued, key string, value *bool)
- func Int64FromForm(r FormValued, key string, value *int64) (found bool, err error)
- func IntFromForm(r FormValued, key string, value *int) (found bool, err error)
- func Parse(r CookieSource, u *URLWrapper, state any) (changed bool, err error)
- func Run(r *http.Request, w http.ResponseWriter, state any) error
- func RunWrapper(s CookieSource, r *URLWrapper, w http.ResponseWriter, state any) error
- func ToCookie(state any) (*http.Cookie, error)
- func ToQueryString(base string, state any) (ret string, err error)
- func ToURLValues(v url.Values, state any) (err error)
- func Uint64FromForm(r FormValued, key string, value *uint64) (found bool, err error)
- func Write(w http.ResponseWriter, state any) error
- type CookieSource
- type FormValued
- type URLWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolFromForm ¶
func BoolFromForm(r FormValued, key string, value *bool)
func Int64FromForm ¶
func Int64FromForm(r FormValued, key string, value *int64) (found bool, err error)
func IntFromForm ¶
func IntFromForm(r FormValued, key string, value *int) (found bool, err error)
func Parse ¶
func Parse(r CookieSource, u *URLWrapper, state any) (changed bool, err error)
func RunWrapper ¶
func RunWrapper(s CookieSource, r *URLWrapper, w http.ResponseWriter, state any) error
func Uint64FromForm ¶
func Uint64FromForm(r FormValued, key string, value *uint64) (found bool, err error)
Types ¶
type FormValued ¶
type URLWrapper ¶
func GetWrapper ¶
func GetWrapper(r *http.Request) (*URLWrapper, error)
func (URLWrapper) FormValue ¶
func (self URLWrapper) FormValue(k string) string
func (URLWrapper) HasValue ¶
func (self URLWrapper) HasValue(k string) bool
Click to show internal directories.
Click to hide internal directories.