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 debug: false
defaultLanguageCode: "en"
rabbitmq: rabbitmq:
host: "127.0.0.1" host: "127.0.0.1"
username: "guest" username: "guest"

View File

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