
I tried a build a simple HTTP Server in GoLang
2022.09.02
This article was published more than one year ago. Please be aware that the information may be outdated.
Introduction
Hi this is Akshay Rao currently working in Annotation.Inc. I wanted to learn Go language, so thought of building a simple project. In this project ,I have built a simple a HTTP server which gives a html Response in the web browser when the paths are changed.
Let's Start
Download a goLang from https://go.dev/ according to your Operating System.
I have used VS code as code editor.
-
a. fmt- will help in printing out the results and getting inputs from users.
b. html - to print the html response on the web browser.
c. log- if there is any error while running the server it will log the error in terminal.
d. net/http - to create a server.



Conclusion
I will try to host it on docker with the help of docker file.
Thank you

