How I use HTMX with Go

18 points by cgrinds


rsesek

In my own experiments with Go and HTMX, I've converged on similar solutions as the author. It's a nice pattern being able to serve the same templates either as rendered partials or full page, and it feels a lot simpler than the currently more popular split frontend/backend architecture. Personally I ended up making a wrapper around *http.Request, more like a framework than a library, but I also like the author's design.