Skip to content

Instantly share code, notes, and snippets.

View andorus911's full-sized avatar
🐻
What do I say? Roar, roar

Andrei Loginov andorus911

🐻
What do I say? Roar, roar
View GitHub Profile
@andorus911
andorus911 / viper_snake_case_problem.go
Last active June 25, 2023 18:27
Viper Snake Case problem | Unmarshal config into struct by using tags doesn't work
package main
import (
"flag"
"fmt"
"github.com/spf13/viper"
"log"
)
/// THERE IS NOT INTUITIVE PROBLEM -->