Golang
Golang search for an element in slice [SOLVED]
In this tutorial, we will try to implement some algorithms to search for an element in a slice. Go before version 1.18 does not provide any built-in methods
How to write logs to file in Golang? [SOLVED]
In this tutorial, we will learn how to write logs to file in Golang. We have several ways to save the application log to specific files: we can use the
Print Function, File Name, Line Number in GO [SOLVED]
In this tutorial we will share different methods to print or get logrus line number, file name, function name of the go code.
How to handle defer calls with os.Exit in GO? [SOLVED]
In this tutorial, we will guide you on how to handle defer calls with the os.Exit(). The defer keyword in Go is a statement used to defer the execution of a
Golang Padding String, Int or Float [SOLVED]
In this tutorial we have covered different examples for golang padding or formatting of string and integer values. We can perform formatting using whitespace or …
