Replace config struct tags
This commit is contained in:
parent
65317503cf
commit
089522a2e5
14
main.go
14
main.go
|
@ -25,13 +25,13 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type constants struct {
|
type constants struct {
|
||||||
RootURL string `mapstructure:"root"`
|
RootURL string `koanf:"root"`
|
||||||
LogoURL string `mapstructure:"logo_url"`
|
LogoURL string `koanf:"logo_url"`
|
||||||
FaviconURL string `mapstructure:"favicon_url"`
|
FaviconURL string `koanf:"favicon_url"`
|
||||||
UploadPath string `mapstructure:"upload_path"`
|
UploadPath string `koanf:"upload_path"`
|
||||||
UploadURI string `mapstructure:"upload_uri"`
|
UploadURI string `koanf:"upload_uri"`
|
||||||
FromEmail string `mapstructure:"from_email"`
|
FromEmail string `koanf:"from_email"`
|
||||||
NotifyEmails []string `mapstructure:"notify_emails"`
|
NotifyEmails []string `koanf:"notify_emails"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// App contains the "global" components that are
|
// App contains the "global" components that are
|
||||||
|
|
Loading…
Reference in New Issue