
I tried a build a simple HTTP Server in GoLang
この記事は公開されてから1年以上経過しています。情報が古い可能性がありますので、ご注意ください。
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