TAG

Golang

How to use go get specific version in GO? [SOLVED]

In this tutorial, we will show you how to import a package on a specific version. Your code may occasionally require extra functions not available in your

By tuannguyen · 4 min read · GO

How to set golang HTTP client timeout? [SOLVED]

In this tutorial, we will explain some methods to set timeout for HTTP requests. A Request Timeout header is defined for Hypertext Transfer Protocol (HTTP).

By tuannguyen · 5 min read · GO

Subtract time.Duration from time in GO [SOLVED]

In Golang, we usually have to deal with time management, we do need to do some operations such as adding, and subtracting a duration from time. We will walk

By tuannguyen · 4 min read · GO

Cannot find package even if GOPATH is set [SOLVED]

Sometimes you will encounter the "Cannot find package" error (even though GOPATH is set) when building a Golang module. In this article, we will explain why

By tuannguyen · 4 min read · GO