shared

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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 ParseID

func ParseID(r *http.Request) (uint, error)

func Redirect

func Redirect(w http.ResponseWriter, r *http.Request, path string)

Types

type FormAction

type FormAction string
const (
	FormActionSave   FormAction = "save"
	FormActionDelete FormAction = "delete"
)

func (*FormAction) IsValid

func (f *FormAction) IsValid() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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