Golang

The Go Programming Tutorials

Reflection in Golang

Reflection is an advanced programming concept, which in some programming languages allows the program to check types and values at runtime. Go has a package for reflection – the reflect package. In this post, we are going to discuss how to do reflection in Go. What is Reflection in Programming? Reflection is the way a […]

Reflection in Golang Read More ยป

The “time” package in Go

The time package contains everything useful about time. In this post, we are going to explore the time package in Go. The Sleep() function in time package First, we need to import the time package to do something with it. The time package has a sleep function that can pause the main Go thread. The

The “time” package in Go Read More ยป

Packages in Golang

Packages allow us to focus on the code reuse principle aka the DRY (Don’t Repeat Yourself) principle. It enables us to write concise code in a structured manner. In this post, we are going to take a look at the package system in Go. What is a package in Go? A package is essentially a

Packages in Golang Read More ยป

The list container in Go

Lists are an important aspect of programming. It is one of the most important data structures used today. In this post, we are going to explore about lists in Go. The “container/list” package To use lists in Go, we import the list package inside the container package. Then we can use the lists in Go

The list container in Go Read More ยป

Import in Golang

Almost everything we want to do in Go comes from some package. And to use those packages, we need to import them. In this post, we will explore different import methods available in Go. Types of imports in Go Go has different kinds of imports that are used for different cases. Here are the import

Import in Golang Read More ยป