You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
241 B

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
}