HTTP server handling form submission and serving static files, written in Go.
.
├── go.mod # Go module define
├── main.go # server code main
└── static/ # Static file directory
│ ├── form.html # HTML form
│ └── index.html # HTML landing page
└── Readme.md
- / - landing page index.html in ./static directory
- /hello (GET) - "Hello!" message
- /form (POST) - Handles form submission
- Clone the repository
- Go to the project directory
- Run the Server:
go run main.go- The server will start at http://localhost:8080