Some more configuration changes…
parent
143b05a3ba
commit
2ef3944efd
|
@ -25,3 +25,4 @@ _testmain.go
|
|||
|
||||
# project executable
|
||||
/gorepost
|
||||
config.json
|
||||
|
|
|
@ -12,5 +12,6 @@
|
|||
},
|
||||
"Passwords":{},
|
||||
"Plugins":[],
|
||||
"Ignore":[]
|
||||
"Ignore":[],
|
||||
"Logpath":"/home/gorepost/.gorepost/gorepost.log"
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ type Config struct {
|
|||
Passwords map[string] string
|
||||
Plugins []string
|
||||
Ignore []string
|
||||
Logpath string
|
||||
}
|
||||
|
||||
func ReadConfig(path string) (Config, error) {
|
||||
|
|
Loading…
Reference in New Issue