CATEGORY

GOLANG Solutions

How to get current directory in Golang? [SOLVED]

There are 4 different methods to get current directory in golang. Method-1: The os package and Executable() function Method-2: file/filepath and the Abs() …

By tuannguyen · 4 min read · GOLANG Solutions

How to make Golang POST JSON request? [SOLVED]

In the previous chapter, we have shown you some examples of working with the HTTP server and client in Golang. The built-in package net/http in Go provides

By tuannguyen · 4 min read · GOLANG Solutions

How to turn html body tag into string in GO? [SOLVED]

In order to make the string printable as plain text, we need to strip the string of its tags. In today's post, we will examine some methods to convert HTML to

By tuannguyen · 4 min read · GOLANG Solutions

How to multiply duration by integer in GO? [SOLVED]

In this tutorial, we will walk through some examples of converting int to time.Duration and doing some operations (division, multiply) with it. The built- in

By tuannguyen · 3 min read · GOLANG Solutions