Golang Constructors – Design Patterns For Initializing Variables
A constructor is a language feature that is used to initialize variables. The Go language doesn’t have any concrete “constructor” as such, but we can use a number of different…
Favourite tutorials for developers
A constructor is a language feature that is used to initialize variables. The Go language doesn’t have any concrete “constructor” as such, but we can use a number of different…
Go has a special make function that can be used to initialize channels, slices, and maps. Using make, we can specify the memory and capacity constraints of the data type…
Maps are a built-in data structure in Go that act as a collection of key-value pairs. They are also known as associative arrays, hash tables, or dictionaries in other programming…
In this post, we will learn how to work with JSON in Go, in the simplest way possible. We will learn how to convert from JSON raw data (strings or…
This tutorial will teach you how to work with Time in Go (Golang) - including how to parse and format date-time strings, add and subtract time durations, get the current…
In most web applications, we need to make HTTP requests to external services. For example, we might need to make a request to a third-party API to fetch some data.…
In this post, we’ll learn about Go’s context package, and more specifically, how we can use it to improve our applications performance.