golangdocs

Guide to Cloning Git Repositories

Source codes are indispensable. Therefore, version control systems are an equally significant asset. Version control systems are essential for software teams because of the secure management features they provide.  Of all the version control systems out there, Git is, without a doubt, the most popular option. In fact, it has practically turned into the default […]

Guide to Cloning Git Repositories Read More »

Golang Byte Array to String

There are three easy ways to convert byte array to string in Golang. 1. Byte Array to String using Slice This is the easiest way to convert the byte array to string. We can pass the byte array to the string constructor with slicing. Let’s look at a simple example. Output: String = GOLANG 2.

Golang Byte Array to String Read More »

Golang int64 to string conversion

Sometimes we have to convert int64 to string in Golang. We can use different functions to achieve this. Using strconv.Itoa() to convert Golang int64 to string Golang strconv.Itoa() function can be used to convert int64 to string. Let’s have a look at a simple example. Output: 97 Why not use string() to convert int64 to

Golang int64 to string conversion Read More »

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 »

How to Install Go on Mac OS

It’s very easy to install Go on Mac OS. Let’s get started. 1. Download Go Mac OS Installer Package Go to the Golang download page: https://go.dev/dl/ and download the Mac OS installer package. 2. Run the Installer Package to Install Go on Mac Open the Mac OS installer package and follow the steps. There are

How to Install Go on Mac OS Read More »