| by Arround The Web

How to Install GO (golang 1.22) in Ubuntu 22.04

Go programming language announced the new 1.22 release this Tuesday! Here’s the new features and how to install guide for Ubuntu & other Linux. What’s New in Go 1.22: The variables declared by a “for” loop were created once and updated by each iteration. In new 1.22 release, each iteration of the loop creates new […]

Share Button
Read More
| by Arround The Web

Error Printing in Go (Print Error)

Tutorial on the process of printing the error messages in Go using the new function and the “Errorf” function to combine multiple errors along with examples.

Share Button
Read More
| by Arround The Web

Directory Walking in Go (Walkdir)

Practical guide on the concept of directory walking and the various methods and techniques to perform the directory walking using the Go programming languages.

Share Button
Read More
| by Arround The Web

Constant Maps in Golang (Constant Map)

Tutorial on the fundamentals of working with maps, understanding what constant maps are, how they work, and how to use an anonymous function to declare one.

Share Button
Read More
| by Arround The Web

Gzip Compression in Go (Gzip)

Guide on working with the gzip package in Go to compress and decompress the data for a quick and efficient storage and transfer of data across multiple mediums.

Share Button
Read More
| by Arround The Web

Sort a Map in Go by Value (Sort Map by Value)

Tutorial on the various methods and techniques that you can use to sort a map in Golang by its values and how to use structs to sort a map by value and by keys.

Share Button
Read More
| by Arround The Web

Float Conversion in Go (Float to String)

Practical tutorial on float conversion in Go by exploring the Sprintf and FormatFloat methods that we can use to convert the floats to string representation.

Share Button
Read More
| by Arround The Web

Time Formatting in Go (Time to String)

Practical tutorial on the methods and features of time formatting using the Go language to format the time strings and the date strings into specific layouts.

Share Button
Read More
| by Arround The Web

Reading Files in Go (Read File Line by Line)

Practical tutorial on the methods and techniques on how we can read a file line by line in Go using the “bufio” package, the Scanner type, and the NewReader.

Share Button
Read More
| by Arround The Web

Custom Errors in Go (Custom Error)

Practical guide on setting up the custom errors in Go, the error interface, the Error() method, how to implement it, and how to create the custom error types.

Share Button
Read More
| by Arround The Web

Checking Empty Structs in Go (Check If Struct Is Empty)

Tutorial on the workings of structs in Go and the various methods and techniques that we can use to check whether a struct is empty or not along with examples.

Share Button
Read More
| by Arround The Web

Golang’s Constant Arrays (Const Array)

Comprehensive guide on how to define the constant arrays in the Go programming language to store a collection of values that cannot be changed in a single unit.

Share Button
Read More
| by Arround The Web

Determining a Variable Types in Golang (Get the Type of Variable)

Comprehensive guide on the various methods and techniques that we can employ to determine the data type of a given variable in the Golang programming language.

Share Button
Read More
| by Arround The Web

Golang Date and Time (Datetime)

Tutorial on how to use and work with datetime in Go without using the external packages by taking advantage of the “time” package and the provided methods.

Share Button
Read More
| by Arround The Web

Go JSON Omitempty Usage (JSON Omitempty)

Comprehensive guide on the workings of the omitempty attribute or tag and how it can help us in serializing and deserializing the JSON data in the Go language.

Share Button
Read More
| by Arround The Web

Functions as Parameters in Go (Function as Parameter)

Comprehensive guide on the fundamentals of working with functions as parameters in Go to set up a good foundation for good and modular code along with examples.

Share Button
Read More
| by Arround The Web

Hostname Retrieval in Go (get hostname)

Practical guide on the various methods and techniques that we can use to programmatically retrieve the hostname of a system using the Go programming language.

Share Button
Read More
| by Arround The Web

How to Install Go on Ubuntu 22.04

In this tutorial, we will show you how to install Go on Ubuntu 22.04. Golang, also known as Go, is a modern programming language developed by Google in 2007 to improve its programming productivity.
The post How to Install Go on Ubuntu 22.04 appeared fi…

Share Button
Read More
| by Arround The Web

How to Add Golang Build Tags

Practical tutorial on how to add the Golang build tags Adding to customize the code inclusion during the build process and create the platform-specific builds.

Share Button
Read More
| by Arround The Web

GoLang Testify Examples

Tutorial on the two illustrations of the Golang testify examples using the Golang testing package to add some numbers and calculate the area of a rectangle.

Share Button
Read More
  • 1
  • 2