ismail17719 / simple-go-web-server

This projects demonstrates how to create a simple web server that accepts user requests for three different routes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a project that demonstrates how to create a simple Go web server. There are three routes on the server that can accept user's requets and return an HTTP response.

These are the routes:

  • / This route demonstrates how to return a static html file to a user request. In our case its index.html
  • /greet This route demonstrates how to call a function in response to a user request
  • /form.html to return form.html file in the static files directory. This file has basic login form and "admin" is the default username and password
  • /form This route shows basic form handling by first calling a function and then return an html file that contains the form.

About

This projects demonstrates how to create a simple web server that accepts user requests for three different routes


Languages

Language:HTML 53.3%Language:Go 46.7%