Getting started
Installation
To use gofh, you need Go 1.16 or later installed on your system. Install gofh using go get
:
Hello World Example
Let's create a simple "Hello World" application with gofh:
Create a new directory for your project:
Initialize a new Go module:
Create a file named
main.go
with the following content:
Run your application:
Open your web browser and visit
http://localhost:8080
. You should see the "Hello, World!" message. Clicking on it will change the message to "Hello from gofh!" without a page reload, demonstrating the HTMX integration.
Last updated