1 2 3 4 5 6 7 8 9
package main import ( "net/http" ) func HtmxRedirect(w http.ResponseWriter, url string) { w.Header().Add("HX-Redirect", "/") }