imran1509 / go-server

A simple web server with Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-server

A simple web server with Golang

This repository contains the code files for a simple web server in Golang

Prequisites

  • 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.

Final Result/Output

  • 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

About

A simple web server with Golang


Languages

Language:Go 63.9%Language:HTML 36.1%