diff --git a/Makefile b/Makefile index 83c3903..9b8532f 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,10 @@ build-and-update: go build -v -o control-panel-cloudflare ./control-panel-cloudflare -build: +goget: go get -v -x . + +build: go build -v -o control-panel-cloudflare update: diff --git a/argv.go b/argv.go index 6cedc8f..ad6f17d 100644 --- a/argv.go +++ b/argv.go @@ -4,7 +4,7 @@ package main this enables command line options from other packages like 'gui' and 'log' */ -import ( +import ( arg "github.com/alexflint/go-arg" ) diff --git a/config.go b/config.go index 0069def..fae4988 100644 --- a/config.go +++ b/config.go @@ -1,12 +1,12 @@ package main -import ( - "os" - "log" +import ( "bufio" + "log" + "os" "strings" - "go.wit.com/gui/cloudflare" + "go.wit.com/lib/gui/cloudflare" ) var configfile string = ".config/wit/cloudflare" @@ -49,7 +49,7 @@ func readFileLineByLine(filename string) error { line := scanner.Text() parts := strings.Fields(line) - if (len(parts) < 4) { + if len(parts) < 4 { log.Println("readFileLineByLine() SKIP =", parts) continue } diff --git a/main.go b/main.go index d342096..13d9680 100644 --- a/main.go +++ b/main.go @@ -1,10 +1,10 @@ package main -import ( - "go.wit.com/log" +import ( + "go.wit.com/bug/debugger" "go.wit.com/gui/gui" - "go.wit.com/gui/debugger" - "go.wit.com/gui/cloudflare" + "go.wit.com/lib/gui/cloudflare" + "go.wit.com/log" ) var title string = "Cloudflare DNS Control Panel"