Golang
GO environment variables [Best Practices]
Go environment variables include os.Setnev(), os.Getenv(), os.LookupEnv(), os.Unsetenv(), godotenv (.env) file.
Golang panic handing [capture, defer, recover, log]
We will cover the following scenarios in detail: How to capture a panic message FROM stderr to log file, Using defer with panic, Handling golang panics using …
Golang Buffered Channel Tutorial [Practical Examples]
A buffered channel is a type of channel that has storage capacity within. Create and handle deadlock scenario, create lock and unlock code with buffered channel …
Golang defer keyword - How & When to Use it?
golang defer keyword can be used to close open files, close open connections, waitgroups, methods and functions
Declare golang constant maps - is it possible? [SOLVED]
We can not declare constant maps directly in golang as other programming languages. In this tutorial we covered different workaround hacks to declare golang …
