Some more configuration changes…

configurable-file-paths
Robert Gerus 2015-10-15 21:23:42 +02:00
parent 143b05a3ba
commit 2ef3944efd
3 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -25,3 +25,4 @@ _testmain.go
# project executable
/gorepost
config.json

View File

@ -12,5 +12,6 @@
},
"Passwords":{},
"Plugins":[],
"Ignore":[]
"Ignore":[],
"Logpath":"/home/gorepost/.gorepost/gorepost.log"
}

View File

@ -14,6 +14,7 @@ type Config struct {
Passwords map[string] string
Plugins []string
Ignore []string
Logpath string
}
func ReadConfig(path string) (Config, error) {