Added folder and config path to templates
parent
f48be20aac
commit
47b20e6d52
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue