32 lines
No EOL
525 B
Go
32 lines
No EOL
525 B
Go
package settings
|
|
|
|
import (
|
|
"github.com/pelletier/go-toml"
|
|
)
|
|
|
|
type Setting struct {
|
|
API API
|
|
DailyScripture DailyScripture `toml:"daily_scripture"`
|
|
System System
|
|
Translations Translations
|
|
}
|
|
|
|
type API struct {
|
|
BaseURL string `toml:"base_url"`
|
|
Schedule string
|
|
Rotation string
|
|
User string
|
|
}
|
|
|
|
type DailyScripture struct {
|
|
UserSubmitted bool `toml:"user_submitted"`
|
|
}
|
|
|
|
type System struct {
|
|
TimeZone string `toml:"timezone"`
|
|
}
|
|
|
|
type Translations struct {
|
|
BaseDir string `toml:"basedir"`
|
|
Active []string `toml:"active"`
|
|
} |