#77: Make page title customizable

This commit is contained in:
TwinProduction committed 2021-09-11 01:51:14 -04:00
1 parent effad21c64
commit 7a68920889
12 files changed
+136 -27

No files matched your search

+5
View File
@@ -15,6 +15,11 @@ type WebConfig struct {
Port int `yaml:"port"`
}
// GetDefaultWebConfig returns a WebConfig struct with the default values
func GetDefaultWebConfig() *WebConfig {
return &WebConfig{Address: DefaultAddress, Port: DefaultPort}
}
// validateAndSetDefaults checks and sets the default values for fields that are not set
func (web *WebConfig) validateAndSetDefaults() error {
// Validate the Address