Categorygithub.com/crhntr/go-htmx-examples
repository
0.0.0-20241105202227-7571a2425814
Repository: https://github.com/crhntr/go-htmx-examples.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Example Webapps using Go and HTMX

Usage Summary

This table is a summary of stuff used in the various examples.

All requests are now routed with new Go 1.22 http.ServeMux instead of "github.com/julienschmidt/httprouter".

ExampleHTMX AttributesState Management
bulk-updatehx-include, hx-put, hx-targetsqlc
click-to-edithx-boost, hx-swap, hx-targetsqlc
click-to-loadhx-get, hx-swap, hx-targetjson in-memory
delete-rowhx-confirm, hx-delete, hx-swap, hx-targetjson, in-memory
edit-rowhx-get, hx-include, hx-post, hx-swap, hx-targetjson, in-memory
lazy-loadinghx-get, hx-triggerN/A
inline-validationhx-post, hx-swap, hx-target, hx-trigger, sse-connect sse-swapin-memory
spreadsheethx-encoding, hx-get, hx-patch, hx-post, hx-swap, hx-triggerjson, in-memory
  • I am also using Pico CSS in some examples.

Generation

This project uses some code generation. Before you execute go generate ./..., you need to install:

  • go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
  • go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest see https://docs.sqlc.dev