Merge pull request #11 from leon-richardt/ref/default-config

ref: provide default values for config items
This commit is contained in:
Leon Richardt 2022-08-23 11:30:15 +02:00 committed by GitHub
commit 445540c747
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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() {