go-common/app/interface/bbq/app-bbq/conf/app.go

15 lines
241 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
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
}