GoLang

The Go Programming Tutorials

Learning Golang with no programming experience

Google developed Golang or Go in 2009. It’s a comprehensive object-oriented coding language that brings programmers the best from well-known programming languages such as Python and C++. Go perfectly combines Python’s readability with C++’s efficiency, which makes it a perfect solution for developing software products and websites. Modern-day developers and programmers utilize the Golang coding …

Learning Golang with no programming experience Read More »

GoLang Read File Line by Line

We can use GoLang “bufio” package along with the “os” package to read the contents of a file line by line. The process to read a text file line by line include the following steps: Use os.open() function to open the file. Use bufio.NewScanner() function to create the file scanner. Use bufio.ScanLines() function with the …

GoLang Read File Line by Line Read More »

GoLang Global Variables

We can define a variable outside the function, these are called GoLang Global Variables. These variables can be accessed by any function in the package. GoLang Global Variables Example Let’s have a look at a simple example of global variable in GoLang. When you execute the above code, the output will be: Global Variables are …

GoLang Global Variables Read More »

Techniques to Maximize Your Go Application’s Performance

Since its creation, Golang has been gaining popularity amongst programmers. Many developers and teams are moving to Golang from other languages like Python, Ruby, and Node.  There are numerous reasons for moving to https://go.dev/: Resource optimization Concurrency Efficiency High Speed Scalability The most common reasons developers love the language are the high speed it provides …

Techniques to Maximize Your Go Application’s Performance Read More »

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 »