ref: provide default values for config items

This commit is contained in:
Leon Richardt 2022-08-23 11:27:12 +02:00
parent 413202a208
commit 4425398462
No known key found for this signature in database
GPG key ID: AD8BDD6273FE8FC5

View file

@ -31,7 +31,12 @@ func ConfigFromFile(filePath string) (*Config, error) {
log.SetPrefix("config.FromFile > ")
retval := &Config{}
retval := &Config{
Port: 4711,
LinkPrefix: "https://jaf.example.com/",
FileDir: "/var/www/jaf/",
LinkLength: 5,
}
scanner := bufio.NewScanner(file)
for scanner.Scan() {