update to go modules

This commit is contained in:
Jon Lundy
2020-03-23 19:26:27 -06:00
parent c0de49b71f
commit 38ce24fef9
9 changed files with 502 additions and 1342 deletions

View File

@@ -5,7 +5,6 @@ import (
"github.com/docopt/docopt.go"
"github.com/spf13/viper"
"sour.is/x/toolbox/httpsrv"
"sour.is/x/toolbox/log"
"sour.is/x/toolbox/log/event"
_ "sour.is/x/toolbox/stats"
@@ -65,7 +64,7 @@ func init() {
viper.Set("app.build", AppBuild)
}
if args, err = docopt.Parse(AppUsage, nil, true, AppVersion, false); err != nil {
if args, err = docopt.ParseDoc(AppUsage); err != nil {
log.Fatal(err)
}
@@ -106,8 +105,5 @@ func init() {
if args["--listen"] != nil {
viper.Set("http.listen", args["--listen"].(string))
}
httpsrv.Config()
}
}