Thanks to Akhil Sharma
Code written following his training course available on freeCodeCamp.org : Learn Go Programming by Building 11 Projects – Full Course
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
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