Go – Error Handling
This topic is about Go - Error Handling. Go programming provides a pretty simple error handling framework with inbuilt error interface type of the following declaration − type error interface…
This topic is about Go - Error Handling. Go programming provides a pretty simple error handling framework with inbuilt error interface type of the following declaration − type error interface…
This topic is about Go - Interfaces. Go programming provides another data type called interfaces which represents a set of method signatures. The struct data type implements these interfaces to have method…
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…