mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-03-14 05:46:26 -05:00
15 lines
241 B
Go
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
|
|
}
|