Added initial layout files, data sources, and types/settings/etc.
This commit is contained in:
parent
1d949f6e2a
commit
59d6e2940a
2460 changed files with 3466 additions and 0 deletions
32
internal/settings/settings.go
Normal file
32
internal/settings/settings.go
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
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"`
|
||||
}
|
||||
Loading…
Reference in a new issue