The Go Programming Tutorials

What is rune in GoLang?

Stings are always defined using characters or bytes. In GoLang, strings are always made of bytes. Go uses UTF-8 encoding, so any valid character can be represented in Unicode code points. What is GoLang rune? A character is defined using “code points” in Unicode. Go language introduced a new term for this code point called …

What is rune in GoLang? Read More »

Golang – Using Gorilla Websockets

In this tutorial, we’ll be looking at how we can use the Gorilla Websocket package in Golang. This library provides us with easy to write websocket client/servers in Go. It has a working production quality Go implementation of the websocket protocol, which enables us to deal with stateful http connections using websockets. The main repository …

Golang – Using Gorilla Websockets Read More »

Makefiles with Go

When you’re often working on large projects involving Golang, it’s often time consuming to keep typing the build and test commands go build xx, go test xx, repeatedly. And often these commands itself may become non-trivial. Makefiles provide a very effective way to automate writing tasks for our application. Let’s understand how we can easily …

Makefiles with Go Read More »

Golang – Read JSON File

JSON (Javascript Object Notation) is a widely used format for representing data. Due to its easy-to-read format, developers often use JSON files to represent important configuration/environment variables. Apart from this, most RESTful APIs return data encoded in a JSON format, so knowing how to deal with such data can be very useful in real world …

Golang – Read JSON File Read More »

Golang – Iterate over a map

Hello again! In a previous discussion, we talked about using the native map container in Go. In this tutorial, we’ll be exploring more about maps in particular, by iterating through them. We’ll also have a brief overview of how this scenario changes in a multi-threaded environment as well, so keep reading for more! Now, let’s …

Golang – Iterate over a map Read More »

Golang reflect package

Today we’ll get into a more in-depth look into a package in Go called reflect. It is on the more intermediate to advanced implementation side. In this tutorial, we’ll see what it is and how it is used. For a deeper understanding, you can also check out Implementing reflection in Reflection and Type Switching in Go.

Unary gRPC with Golang – Part 2

This is the final part of the gRPC tutorial. If you haven’t checked the rest out, here’s the link: Introduction to gRPC with Golang. Unary gRPC with Golang – 1 We have already covered the basics, and code generation, and testing. Now we’ll code our main server and client. Main Server and Client Create two …

Unary gRPC with Golang – Part 2 Read More »

Unary gRPC with Golang

This is Part 2 of the gRPC tutorials. If you haven’t checked that out, here’s the link: Introduction to gRPC with Golang. Since we covered all the basics, we’ll directly jump into implementing a unary gRPC with GO. Define a proto service Implement server in Go Implement client in Go Error Handling Homebrew and Protoc …

Unary gRPC with Golang Read More »

Introduction to gRPC with Golang

Here, we will learn everything about what gRPC is and how we can implement it with the Go programming language. Be sure to have a notebook or text editor ready to take notes for future reference. Also, go through some of the other tutorials on this website if you’re interested. Why gRPC? Today, applications are …

Introduction to gRPC with Golang Read More »