Added folder and config path to templates

master
RuisPipe 2021-06-15 21:57:24 +02:00
parent f48be20aac
commit 47b20e6d52
1 changed files with 8 additions and 2 deletions

View File

@ -9,6 +9,7 @@ var Cfg Config
type Config struct { type Config struct {
Server server Server server
Mail mail Mail mail
Templates templates
} }
type server struct { type server struct {
@ -25,6 +26,11 @@ type mail struct {
TemplatePath string TemplatePath string
} }
type templates struct {
FolderPath string
ConfigPath string
}
func LoadConfig() { func LoadConfig() {
toml.DecodeFile("./config.toml", &Cfg) toml.DecodeFile("./config.toml", &Cfg)
} }