Let’s create simple webserver that you can view in your browser using net/http This function is going to take the request and give responses as well: The request handler alone can not accept any HTTP connections from the outside. To listen for HTTP Connections, following code will start Go’s default HTTP server and listen for…
Category: Golang
Building Containerized Microservices in Golang Chapter 1 – Go Basic (Installation and basic command)
I’m going to create a Go web application, containerize through Docker multistage builds, deploy to K8s using Helm concepts that I’ll use: Installing GoLang Installing Go VS Code Extension Go basics: Modules & Packages: GOPATH, GOBIN, go.mod, go.sum Local vs Remote Packages Variables & Constants Functions Maps Packages Cross Complication: GOOS, GOARCH Sample Go Web…
What is Go?
Go is an open source programming language developed by Google. It is a statically-typed language that means you need to declare variable data type before you use them. Go is also compiled rather than interpreted, so it runs faster and offer better performance than interpreted language programs. As a compiled language, Go is expressed in…