added default language code

alpha
alex 2022-12-27 00:54:51 +01:00
parent 0e25f2b407
commit 4adb4606b6
2 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,5 @@
debug: false
defaultLanguageCode: "en"
rabbitmq:
host: "127.0.0.1"
username: "guest"

View File

@ -11,6 +11,7 @@ var Cfg Config
type Config struct {
Debug bool
DefaultLanguageCode string `yaml:"defaultLanguageCode"`
RabbitMq RabbitMq
Mail Mail
Templates Templates
@ -31,8 +32,8 @@ type Mail struct {
}
type Templates struct {
FolderPath string
ConfigPath string
FolderPath string `yaml:"folderPath"`
ConfigPath string `yaml:"configPath"`
}
func LoadConfig() {