Golang composite data types – Arrays and Slices

Go supports composite types such as array, slice, maps and structures. Composite types are made up of other types – built-in types and user-defined types. In this blog we will deal with arrays and slices. Golang Arrays An array is collection of elements of same data type, for instance an array can be collection of …

Continue reading Golang composite data types – Arrays and Slices

3 interesting primitive data types in Golang

Go is a statically typed programming language, which means once the variable is defined it’s data type cannot change. For folks working in dynamically typed languages like Python or Javascript this may seem a little tedious at first. But data types can help us think clearly about the variables, the operations we perform on these …

Continue reading 3 interesting primitive data types in Golang

Golang: Understanding Variables

Now that we understand Golang’s project structure and how to write our own packages and commands, it’s time to get to the language basics and learn about variables. We will learn them in a very practical way - by writing code 🙂 The keyword var is the basic form to define variables. A var statement …

Continue reading Golang: Understanding Variables

Go project structure, building commands and packages

In the last blog, we saw how to create a simple Go script and run it to get the desired outcome. We also learnt about few useful editors and setup Visual Studio Code for working in Golang. Let’s take a step deeper and understand how to structure our Go project. We will also build a …

Continue reading Go project structure, building commands and packages

Golang Hello World!

Now that we installed Go on our Mac and Ubuntu systems in the last blog, it's time to run our first script - program to display hello, world and learn about editors that support Golang. We will download and setup the Visual Studio Code editor. Go Hello World Running a Go script is very similar …

Continue reading Golang Hello World!

Installing Golang

Hi there, welcome back, hope you read the introduction blog and are ready to install Go. Installing Go is trivial, you can download the binaries for your platform from the Go's download page and install it. In this blog, we will install Go v1.11 and go through the steps of installation on macOS and Ubuntu …

Continue reading Installing Golang

Introduction to Go programming language

Hi folks, it's been quite a long time, I have been working on interesting scalability challenges recently and couldn't get enough time to share my learnings. I have been dabbling with this interesting language and thought it'd be great for you to know as well, so here I am, this time with Golang or simply …

Continue reading Introduction to Go programming language