https://github.com/emanuelefavero/go-htmx
This is a simple example of how to use HTMX with Go
https://github.com/emanuelefavero/go-htmx
bootstrap bootstrap5 go golang htmx http-server
Last synced: 4 months ago
JSON representation
This is a simple example of how to use HTMX with Go
- Host: GitHub
- URL: https://github.com/emanuelefavero/go-htmx
- Owner: emanuelefavero
- License: mit
- Created: 2024-04-30T01:05:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T21:47:47.000Z (about 2 years ago)
- Last Synced: 2024-05-01T02:25:29.157Z (about 2 years ago)
- Topics: bootstrap, bootstrap5, go, golang, htmx, http-server
- Language: HTML
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Go HTMX
This is a simple example of how to use HTMX with Go
> Note: We also used bootstrap for styling
#### Screenshot

## How to run
- Clone this repository and `cd` into it
- Make sure you have [Go](https://go.dev/learn/) installed on your machine, then run:
```bash
go run main.go
#or, if you have Gomon installed:
gomon main.go
```
Then open your browser and go to `http://localhost:3000`
> Tip: [Gomon](https://github.com/JulesGuesnon/Gomon) is a command line tool similar to nodemon but for Go, it will automatically restart your server when you make changes to your code
### Resources
- [HTMX](https://htmx.org/)
- [Bootstrap](https://getbootstrap.com/)
- [Go](https://go.dev/)
- [Gomon](https://github.com/JulesGuesnon/Gomon)
- [Go Templates](https://pkg.go.dev/text/template)
- [Go Templates easy tutorial](https://golangforall.org/en/post/templates.html)
## License
- [MIT](LICENSE.md)