htmx

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHtmxBoosted

func IsHtmxBoosted(r *http.Request) bool

func IsHtmxHistoryRestoreRequest added in v0.0.4

func IsHtmxHistoryRestoreRequest(r *http.Request) bool

func IsHtmxRequest

func IsHtmxRequest(r *http.Request) bool

func Location

func Location(w http.ResponseWriter, r *http.Request, target LocationMap) error

func PushUrl

func PushUrl(w http.ResponseWriter, url string)

func Redirect

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

func Refresh

func Refresh(w http.ResponseWriter)

func ReplaceUrl

func ReplaceUrl(w http.ResponseWriter, url string)

func Reselect

func Reselect(w http.ResponseWriter, selector string)

func Reswap

func Reswap(w http.ResponseWriter, value string)

func Retarget

func Retarget(w http.ResponseWriter, selector string)

func Trigger

func Trigger(w http.ResponseWriter, r *http.Request, newTrigger interface{}) error

func TriggerAfterSettle

func TriggerAfterSettle(w http.ResponseWriter, event string)

func TriggerAfterSwap

func TriggerAfterSwap(w http.ResponseWriter, event string)

Types

type LocationMap

type LocationMap struct {
	Path   string `json:"path"`
	Target string `json:"target"`
}

Jump to

Keyboard shortcuts

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