YAML Configs Support
Clivern opened this issue · comments
https://github.com/micro/go-config
database:
host: localhost
port: 25
username: root
password: root
import(
"github.com/micro/go-config"
"github.com/micro/go-config/source/file"
)
config.Load(file.NewSource(
file.WithPath("config.yaml"),
))
fmt.Println(config.Get("database", "host").String("localhost"))