From 47b20e6d52bc06652a8bc8fe0b388967b65da112 Mon Sep 17 00:00:00 2001 From: RuisPipe Date: Tue, 15 Jun 2021 21:57:24 +0200 Subject: [PATCH] Added folder and config path to templates --- modules/config/config.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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) }