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() …
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
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
When does the init() function run in GO? [SOLVED]
Understanding the basics of golang init function and when it is called in the overall flow of the golang code?
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
