Go – Type Conversion
This topic is about Go - Type Conversion. Type conversion is a way to convert a variable from one data type to another data type. For example, if you want…
This topic is about Go - Type Conversion. Type conversion is a way to convert a variable from one data type to another data type. For example, if you want…
Recursion is the process of repeating items in a self-similar way. The same concept applies in programming languages as well. If a program allows to call a function inside the…
This topic is about Go - Maps. Go provides another important data type named map which maps unique keys to values. A key is an object that you use to…
The range keyword is used in for loop to iterate over items of an array, slice, channel or map. With array and slices, it returns the index of the item as integer. With maps,…
This is about Go - Slices. Go Slice is an abstraction over Go Array. Go Array allows you to define variables that can hold several data items of the same…
This topic is about Go - Structures. Go arrays allow you to define variables that can hold several data items of the same kind. Structure is another user-defined data type available in…
this topic is about Go - Passing pointers to functions. Go programming language allows you to pass a pointer to a function. To do so, simply declare the function parameter…
A pointer to a pointer is a form of chain of pointers. Normally, a pointer contains the address of a variable. When we define a pointer to a pointer, the…
Before we understand the concept of arrays of pointers, let us consider the following example, which makes use of an array of 3 integers − package main import "fmt" const…
This topic is about Go - Pointers. Pointers in Go are easy and fun to learn. Some Go programming tasks are performed more easily with pointers, and other tasks, such…