Documentation ¶
Index ¶
- Variables
- func HxRedirect(w http.ResponseWriter, _ *http.Request, path string)
- func ParseID(r *http.Request) (uint, error)
- func Redirect(w http.ResponseWriter, r *http.Request, path string)
- func SetFlash(w http.ResponseWriter, name string, value []byte)
- func SetFlashMap[K comparable, V any](w http.ResponseWriter, name string, value map[K]V)
- type FormAction
Constants ¶
This section is empty.
Variables ¶
View Source
var Decoder = form.NewDecoder()
Functions ¶
func HxRedirect ¶
func HxRedirect(w http.ResponseWriter, _ *http.Request, path string)
func SetFlashMap ¶ added in v0.0.3
func SetFlashMap[K comparable, V any](w http.ResponseWriter, name string, value map[K]V)
Types ¶
type FormAction ¶
type FormAction string
const ( FormActionSave FormAction = "save" FormActionDelete FormAction = "delete" )
func (*FormAction) IsValid ¶
func (f *FormAction) IsValid() bool
Click to show internal directories.
Click to hide internal directories.