Photo by Dylan Ferreira on Unsplash

A brief intro to Memory Addresses

Before you can understand Pointers, you first need to be familiar with memory addresses. Your OS uses memory addresses to track where all your data is stored in your system’s memory (RAM). Here’s an example of what a memory address looks like:


Photo by tofayel ahmed on Unsplash

Anonymous functions are functions without a name. They are also known as Function literals.

This article is part of the Functions in Go series

You define anonymous functions using the usual func keyword, but with a slightly different syntax. …


Photo by Anthony on Unsplash

Variadic functions are functions that are flexible about the number of arguments you can pass into it.

This article is part of the Functions in Go series

Variadic functions are defined using 3 dots, ..., here’s an example of this, where shoppingList ( line 8) is a variadic function.


Photo by freestocks on Unsplash

The Go standard library's errors package makes it quick and easy to create error variables. Once the error variables are created, you can then use the if-statement pattern to decide what to do with it.

This article is part of the Error Handling in Go series.

The error’s package is…


Photo by Vitaly Sacred on Unsplash

To understand what error types are and how they work, you first need to be familiar with Go structs, methods, interfaces, and pointers.

This article is part of the Error Handling in Go series.

The error type is an interface type that comes built-in with Go.

type error interface {…

Photo by Erik Mclean on Unsplash

When something unexpected occurs, then you want your app to raise that as an error and then perform some follow on tasks to address that error, aka error handling. Raising errors and error handling are common traits in well-written programs.

This article is part of the Error Handling in Go


Photo by Jonas Jacobsson on Unsplash

This article is part of the Data Types in Go series.

In Go, creating a variable can be done in 2 parts.

Sher Chowdhury

Blogger at codingbee.net

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store