Added folder and config path to templates
parent
f48be20aac
commit
47b20e6d52
|
@ -7,8 +7,9 @@ import (
|
||||||
var Cfg Config
|
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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue