added default language code
parent
0e25f2b407
commit
4adb4606b6
|
@ -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"
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue