This repository contains the code files for a simple web server in Golang
- You should have Go installed in your system.
- create a new directory named "go-server"
mkdir go-server
- Open the diretory in your code editor
- write the html and go code as written in this repository.
- After writing the code, run the following command to execute the code and start the server
go run main.go
-
Now open the browser and check all the routes.
-
localhost:8080
-
localhost:8080/hello
-
Now open
localhost:8080/form.html
and enter details and submit the form
- Now check
localhost:8080/form