go-common/app/interface/bbq/app-bbq/conf/app.go
2019-04-22 18:49:16 +08:00

15 lines
241 B
Go

package conf
import "github.com/BurntSushi/toml"
// AppSetting .
type AppSetting map[string]interface{}
// Set .
func (a *AppSetting) Set(text string) error {
if _, err := toml.Decode(text, a); err != nil {
panic(err)
}
return nil
}