FAQ
Github: https://github.com/jinzhu/configor

    Basic Usage:

import (
"github.com/jinzhu/configor"
)
var Config = struct {
APPName string `default:"app name"`

DB struct {
Name string
User string `default:"root"`
Password string `required:"true" env:"DBPassword"`
Port uint `default:"3306"`
}

Contacts []struct {
Name string
Email string `required:"true"`
}
}{}

configor.Load(&Config, "config.yml", "config.json"...)
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedSep 2, '15 at 12:47a
activeSep 2, '15 at 12:47a
posts1
users1
websitegolang.org

1 user in discussion

Jinzhu: 1 post

People

Translate

site design / logo © 2022 Grokbase