From 4425398462ed9ede2f63777821f8da2d9e2dc2b3 Mon Sep 17 00:00:00 2001 From: Leon Richardt Date: Tue, 23 Aug 2022 11:27:12 +0200 Subject: [PATCH] ref: provide default values for config items --- config.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index 1829906..30f81e1 100644 --- a/config.go +++ b/config.go @@ -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() {