Author Archives for Gerard Millares

In this class, we follow up our discussions on functions by looking at the special statement “defer” in Golang. Let’s start by discussing what the defer statement does in Golang programs. The defer statement is used to schedule a function...

In this class, we follow up our discussions on functions by focusing on variadic functions. By the end of the class, you’ll have learnt how to implement variadic functions in Golang. Now, you might be thinking, “This is great, but...

In this blog post, we discuss Golang Functions. By the end of the class, you’ll be expected to master how to use Golang functions. But first, let’s start by defining what functions are and their importance in programming. A function—also...

In this blog post, we discuss how to use structs in Golang. After the end of the lesson, you’ll have learnt how to implement structs in your Golang programs. Structs are typed collections that are used to stored fields. They...

Why are there so many programming languages? It might sound like a dumb question to some and a genuine question to others. The question “Why are there so many programming languages” can actually be branched into two, “Do we want...

Let’s face it—a good text editor can provide a local environment that’s suitable for writing your Golang programs. However, the time you take writing such codes is lengthy, and in some cases, quite laborious and tedious—especially when testing and debugging...

In this blog, we’ll be looking at the different data types that are used in Golang and how to cast between different kinds. Before we look at different ways of type casting, let’s discuss some of the most commonly used...

Today we will be discussing how to declare and use variables in your Golang program. Let’s start by discussing the significance of variables in any programming language. A variable can be defined as a temporary storage location in the main...

In this blog, we follow up our previous discussion on Golang environment. After this class, you should begin creating simple Golang apps. To review, your Golang apps all your Golang apps will be organized around the workspaces. Workspaces are the...

In this class, we’ll cover the basics that are necessary to get you started with Golang. By the end of this class, you should be in a position to set up your desktop environment ready to begin coding using Golang....