We have already seen how to create and work with variables, pointers, and Constants. In this article, we are going to see the four important collection types built into the language.
We start with humble Arrays, from there we move on to Slice, an evolved version of Array. From Slice, we talk about the map a key-value pair collection. Let’s start with Arrays here.
Just like in any other programming language, an array in Go is a fixed-sized collection of similar data types.
Array declaration is very straightforward like any other language but with an interesting twist,
other language syntax | Go syntax
int arr = new int | arr :=…
Now its time for us to start digging into the Go language by talking in short about the primitive data types that are used. We are going to keep this discussion into three parts.
If you are from any other programming language, each one of these is going to be different from what you know. Let’s see them in detail and try to comprehend these features.
Unlike most of the languages, Go has various flavors of declaring variables. …
In the previous blog, we discussed arrays one of the most commonly known linear data structure in the programming world. Despite its simplicity and popularity Array by nature got few limitations,
In this blog, we are going to discuss another linear data structure called LinkedList which help to overcome a few limitations.
LinkedList is a linear data structure where each element is an object. Unlike Array, LinkedList is doesn't have a contiguous memory structure. …