for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
package utils
import "log"
// HandleError checks error and logs it if there is one
func HandleError(err error, message string) {
if err != nil {
log.Fatal(message, err.Error())
}