diff --git a/modules/config/config.go b/modules/config/config.go index 5bebc6a..2dbf40b 100644 --- a/modules/config/config.go +++ b/modules/config/config.go @@ -7,8 +7,9 @@ import ( var Cfg Config type Config struct { - Server server - Mail mail + Server server + Mail mail + Templates templates } type server struct { @@ -25,6 +26,11 @@ type mail struct { TemplatePath string } +type templates struct { + FolderPath string + ConfigPath string +} + func LoadConfig() { toml.DecodeFile("./config.toml", &Cfg) }