Golang
Golang Viper: The Unsung Hero of Configuration Wizards
golang viper tutorial to source YAML, JSON or ENV files and get variables. Set default values for empty or missing variables using viper.SetDefault
Golang lint - Different methods with Best Practices
Golang linting is a way to verify the go code to identify any kind of compilation issues, or performance improvements which can be done. We can perform linting …
Golang Parse YAML file [With or Without Struct]
We can use YAML package in golang to parse YAML file and store the content inside struct or map using yaml.Unmarshal.
How to store values in struct using for loop in GO
In this solution we will learn how to store the values into struct using for loop in golang
Golang return error and handle [Best Practices]
We can return errors in golanf func and then handle errors effectively using Casting Errors, Error wrapping mechanism, and Panic, defer and recover
