Versions in this module Expand all Collapse all v4 v4.0.0 Sep 19, 2026 Changes in this version + const HxBoosted + const HxCurrentUrl + const HxHistoryRestoreRequest + const HxLocation + const HxPushUrl + const HxRedirect + const HxRefresh + const HxReplaceUrl + const HxRequest + const HxRequestType + const HxReselect + const HxReswap + const HxRetarget + const HxSource + const HxTarget + const HxTrigger + func GetCurrentUrl(r *http.Request) string + func GetRequestType(r *http.Request) string + func GetSource(r *http.Request) string + func GetTarget(r *http.Request) string + func Headers(w http.ResponseWriter, options ...HeaderOption) error + func IsBoosted(r *http.Request) bool + func IsHistoryRestoreRequest(r *http.Request) bool + func IsHtmx(r *http.Request) bool + func IsRequest(r *http.Request) bool + func IsRequestTypeFull(r *http.Request) bool + func IsRequestTypePartial(r *http.Request) bool + type HeaderOption interface + type HeaderOptionFunc func(*HxHeaders) + func PushUrl(url any) HeaderOptionFunc + func Refresh() HeaderOptionFunc + func ReplaceUrl(url any) HeaderOptionFunc + func Trigger(events ...any) HeaderOptionFunc + type HxHeaders struct + func BuildHeaders(options ...HeaderOption) (headers *HxHeaders, err error) + func (r HxHeaders) Headers() map[string]string + type LocationProperties struct + func Location(path string) *LocationProperties + func (l *LocationProperties) Event(evt string) *LocationProperties + func (l *LocationProperties) Headers(headers map[string]string) *LocationProperties + func (l *LocationProperties) Select(sel string) *LocationProperties + func (l *LocationProperties) SelectOOB(sel string) *LocationProperties + func (l *LocationProperties) Source(src string) *LocationProperties + func (l *LocationProperties) Swap[T string | Reswap | *ReswapModifiers](swap T) *LocationProperties + func (l *LocationProperties) Target(tgt string) *LocationProperties + func (l *LocationProperties) Transition() *LocationProperties + func (l *LocationProperties) Values(values any) *LocationProperties + type Redirect string + type Reselect string + type Reswap string + const SwapAfter + const SwapAppend + const SwapBefore + const SwapDelete + const SwapInnerHtml + const SwapInnerMorph + const SwapNone + const SwapOuterHtml + const SwapOuterMorph + const SwapOuterSync + const SwapPrepend + const SwapTextContent + const SwapUpsert + func (s Reswap) FocusScroll(focus bool) *ReswapModifiers + func (s Reswap) IgnoreTitle() *ReswapModifiers + func (s Reswap) ScrollBottom(targets ...any) *ReswapModifiers + func (s Reswap) ScrollTop(targets ...any) *ReswapModifiers + func (s Reswap) Settle(dur any) *ReswapModifiers + func (s Reswap) ShowBottom(other ...string) *ReswapModifiers + func (s Reswap) ShowNone() *ReswapModifiers + func (s Reswap) ShowTop(other ...string) *ReswapModifiers + func (s Reswap) Strip(strip bool) *ReswapModifiers + func (s Reswap) Swap(dur any) *ReswapModifiers + func (s Reswap) SwapEmpty(swapEmpty bool) *ReswapModifiers + func (s Reswap) Target(target string) *ReswapModifiers + func (s Reswap) Transition() *ReswapModifiers + type ReswapModifiers struct + func (r *ReswapModifiers) FocusScroll(focus bool) *ReswapModifiers + func (r *ReswapModifiers) IgnoreTitle() *ReswapModifiers + func (r *ReswapModifiers) ScrollBottom(targets ...any) *ReswapModifiers + func (r *ReswapModifiers) ScrollTop(targets ...any) *ReswapModifiers + func (r *ReswapModifiers) Settle(dur any) *ReswapModifiers + func (r *ReswapModifiers) ShowBottom(other ...string) *ReswapModifiers + func (r *ReswapModifiers) ShowNone() *ReswapModifiers + func (r *ReswapModifiers) ShowTop(other ...string) *ReswapModifiers + func (r *ReswapModifiers) String() string + func (r *ReswapModifiers) Strip(strip bool) *ReswapModifiers + func (r *ReswapModifiers) Swap(dur any) *ReswapModifiers + func (r *ReswapModifiers) SwapEmpty(swapEmpty bool) *ReswapModifiers + func (r *ReswapModifiers) Target(target string) *ReswapModifiers + func (r *ReswapModifiers) Transition() *ReswapModifiers + type Retarget string + type TriggerEvent func() ([]byte, error) + func Event(name string, data ...any) TriggerEvent Other modules containing this package github.com/stackus/hxgo