Creating a Simple Server in GoLang
Hey all! Here are a few snippets of my homelab attempt to build a server with GoLang. Resources used: was the Learn Go Programming Series. I hope to continue utilizing those videos and curate more Golang Projects. These primarily will be used as a Proof-of-Work rather than an in-depth / step-by-step analysis. Hope you enjoy!

After going into our installed GoLang src files, we are able to begin creating and building a functional static webserver.
We create 2 files index.html & form.html which will be the landing pages. Form.html constructs the document type, the charsets, and POST methods. The Index will be the landing page of / .

Now we begin constructing our main.go
file. This is the main function of how we begin to run our Go server.

There were were definite moments where all of these packages and http.Handlers were out of my league, but it felt great getting down-and-dirty on the keyboard again.

Last updated