Articles by Tuan Nguyen
Split a string and assign it to variables GO? [SOLVED]
In this tutorial we will explore different methods to split a string and store into variables using golang.
How to convert io.Reader to string Golang? [SOLVED]
In this article, we will walk through some examples of converting from an io.Reader to a string in Go.
How to do https request with bad certificate? [SOLVED]
We can use InsecureSkipVerify to do HTTPS request with bad certificate.
What is & and * in Golang? [Solved]
In this tutorial we will explore what is & and * icon or operator in golang and what is it used for?
How to check if struct is empty in GO? [SOLVED]
This article describes a few methods for determining whether a struct in Go is empty. It includes structs having fields that are comparable and
How to convert float64 to int Golang? [SOLVED]
In this tutorial, we will walk through some ways to convert a float64 to int in Golang. As introduced before, we can convert float64 to a string using the
How to Compare Struct, Slice or Map in GO? [SOLVED]
In Golang, the DeepEqual function is used to compare struct, slice, and map equality. It is used to determine whether or not two items are "deeply equal".
How to do repetitive tasks at intervals GO? [SOLVED]
In today's post, I will introduce to you some ways to do some repetitive tasks at intervals in Golang. We can use the time.Ticker() function or use a channel
How to trim leading and trailing spaces GO? [SOLVED]
In this tutorial, we are going to examine some examples of trim leading and trailing white spaces of a string in Golang. Golang provides the built-in package
Import local packages without GOPATH [SOLVED]
In today's post, we are going to answer the question "Can we import the local packages without the GOPATH". We already have an article about how to organize
GO nil detection [interface, slice, pointer, struct, map]
How to detect nil in golang pointers, structs, interface, map, slice with examples
Can functions be passed as parameters GO? [SOLVED]
In this tutorial, we will learn how to pass functions as a parameter to another function in Golang. Since Golang functions are first-order variables so it has
Convert byte slice to io.Reader in Golang [SOLVED]
In this post, we'll examine how to translate a byte slice into an io.Reader in Golang. In Go, a byte slice is a dynamic array (slice) of bytes, which can
GO capture ctrl+c signal & run cleanup function? [SOLVED]
In this tutorial, we will answer the question "Is it possible to capture a Ctrl+C signal (SIGINT) and run a cleanup function, in a "defer" fashion" in Golang.
How to import private Github Repos in GO? [SOLVED]
Creating libs and sharing them among applications is one strategy to shorten the time needed to develop a new project and make your team's work easier. Each
