mirror of
https://github.com/lyx0/yaf.git
synced 2024-11-13 19:49:53 +01:00
Merge pull request #11 from leon-richardt/ref/default-config
ref: provide default values for config items
This commit is contained in:
commit
445540c747
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