Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 823 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 823 Bytes

Basic webserver in Go (go-basic-webserver)

Thanks to Akhil Sharma

Code written following his training course available on freeCodeCamp.org : Learn Go Programming by Building 11 Projects – Full Course

Purpose of the project

This project goal is to serve three URL paths :

  • / : that will display the home page (index.html)
  • /form : that will manage form submitted
  • /hello : that will display a hello message

Specific

As I was working o a specific workspace on my computer, and not the one that is set by default for GO, I add to change the env settings. First, I check the env variables of Go with this command :

go env

Then I set the GO111MODULE to "Auto" with this command :

go env -w GO111MODULE=auto