Using Maps in Golang – With Examples
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…
A Complete Guide to JSON in Golang (With Examples)
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…
Time in Golang – Working With Time, Duration, and Dates (With Examples)
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…
Making REST API Requests in Golang using the HTTP Client
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.…
How to Use Context in Golang (Deadlines, Cancellation, and Passing Values)
In this post, we’ll learn about Go’s context package, and more specifically, how we can use it to improve our applications performance.
A Guide On SQL Database Transactions In Go
This article explains what SQL database transactions are, and how to implement them in Go (Golang). Transactions are very useful when you want to perform multiple operations on a database,…
Using a PostgreSQL Database in Go (in Production)
This post will go through how to interact with an PostgreSQL database in Go, and how to make your application production ready when it comes to connecting and querying your…