Mar 4, 2023

How to make api calls in Golang

Learn to make GET and POST requests to external APIs in Golang

Oct 22, 2022

How to add a key to a map in Golang

Learn how to safely add a key to a map in Golang

Oct 21, 2022

How to find the type of a variable in Golang

Learn two ways to find the type of a variable in Golang

Sep 19, 2022

How to check if a map is empty in Golang

Learn two ways to check if a map is empty in Golang

Sep 17, 2022

How to get a slice of keys from a map in Golang

This tutorial is about getting a slice of keys from a map in golang

Sep 13, 2022

How to convert an interface to a string in Golang

Convert a golang interface to a golang string using a built-in function

Sep 12, 2022

How to remove a key from a map in Golang

Remove an existing key from a map in Golang using a built-in delete function

Sep 11, 2022

How to check if a string starts with a substring in Golang

Check if a string starts with a substring in Golang

Sep 9, 2022

How to exit from the main function in Golang

Learn to exit from the main program when an error occurs inside the main func in golang

Aug 7, 2022

How to convert a float to a string in Golang

Learn to convert a float64 or float32 to a string in golang

Aug 3, 2022

How to convert a float to an int in Golang

Learn to convert a float64 or float32 to an int in golang

Jul 7, 2022

How to get current year in Golang

Learn to get the current year in Golang

Sep 16, 2021

How to merge two slices in Golang

Learn to merge two slices of the same type in Go using a built-in function

Sep 6, 2021

How to initialize a slice with values in Golang

Learn to initialize a new slice with initial values in Golang using a composite literal

Jul 31, 2021

How to check if a slice is empty in Golang

Learn to check if a slice is empty in Golang using the len() method

Jun 28, 2021

How to check if a map contains a key in Golang

Learn to check if a map contains a key in Golang

Jun 26, 2021

How do you write multi-line strings in Golang

Learn to write multi-line strings in your Golang code

Jun 26, 2021

How to check if a file exists in Golang

Learn to check if a file with a given file path exists in Golang 1.16

Jun 25, 2021

How to read a text file in Golang

Learn to read a text file in Golang using the ioutil.ReadFile function

Jun 23, 2021

How to check if an array of int values are sorted in Golang

Learn to check if an array of int values are sorted in increasing order in Golang

Jun 22, 2021

How check if a string contains a substring in Golang

Learn to use strings.Contains function in Golang to check whether a given string contains a substring or not

Jun 20, 2021

How to create a map in Golang

Learn to create and initialize a map of key-value pairs in Golang using the built-in make function

Jun 19, 2021

How to initialize a slice in Golang

Learn to create and initialize a slice of structs in Golang using built-in make function

Jun 19, 2021

How to convert a JSON to a Struct in Golang

Learn to convert a JSON string to a struct using a package json UnMarshal function

Jun 19, 2021

How to convert a Struct to a JSON in Golang

Learn to convert a struct to a JSON using a package json Marshal function