mirror of
https://github.com/lyx0/yaf.git
synced 2024-11-13 19:49:53 +01:00
ref: provide default values for config items
This commit is contained in:
parent
413202a208
commit
4425398462
1 changed files with 6 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue