I’m going to create two types of docker files. One for the local testing, and one for the production. Before creating the docker file, I want to create the docker ignore file because geometry and static folders are not used. Create dockerfile build and run The problem of this image has 974MB which is way…
Month: May 2022
Building Containerized Microservices in Golang Chapter 2 – Web Development
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…
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…