TAG

Golang

Convert map to JSON in Golang? [4 Methods]

In golang there are couple of methods using which we can easily convert map to JSON, some of the methods are: Using json.Marshal() function, Using …

By admin · 3 min read · GO

How to set CPU Affinity in Golang? [SOLVED]

There are multiple methods to set CPU Affinity in golang such as using taskset, syscall package or you can use C library inside the GO code to use …

By admin · 5 min read · GO

How to PROPERLY stop goroutine? [SOLVED]

In today's article, I will guide you on how to stop a goroutine in Golang. A goroutine is a very lightweight thread that is managed by the Go runtime. Every

By tuannguyen · 4 min read · GO

Golang iterate over slice in reverse? [SOLVED]

In Golang, iterating over a slice is surprisingly straightforward; In this article, we will learn how to iterate over a slice in reverse in Go.

By tuannguyen · 3 min read · GO