refactor: eliminate dot imports in main packages

This commit is contained in:
Matthias Radestock committed 2016-03-20 14:34:27 +00:00
1 parent 5e0231ec5e
commit 6ebac90cb0
4 files changed
+16 -13

No files matched your search

-1
View File
@@ -11,7 +11,6 @@ import (
"github.com/gorilla/mux"
"github.com/weaveworks/mesh"
. "github.com/weaveworks/weave/common"
"github.com/weaveworks/weave/ipam"
"github.com/weaveworks/weave/nameserver"
"github.com/weaveworks/weave/net/address"
+6 -4
View File
@@ -16,7 +16,7 @@ import (
"github.com/weaveworks/mesh"
"github.com/weaveworks/go-checkpoint"
. "github.com/weaveworks/weave/common"
"github.com/weaveworks/weave/common"
"github.com/weaveworks/weave/common/docker"
"github.com/weaveworks/weave/db"
"github.com/weaveworks/weave/ipam"
@@ -28,6 +28,8 @@ import (
var version = "(unreleased version)"
var Log = common.Log
type dnsConfig struct {
Domain string
ListenAddress string
@@ -147,7 +149,7 @@ func main() {
peers = mflag.Args()
SetLogLevel(logLevel)
common.SetLogLevel(logLevel)
if justVersion {
fmt.Printf("weave router %s\n", version)
@@ -255,7 +257,7 @@ func main() {
router.Start()
if errors := router.InitiateConnections(peers, false); len(errors) > 0 {
Log.Fatal(ErrorMessages(errors))
Log.Fatal(common.ErrorMessages(errors))
}
// The weave script always waits for a status call to succeed,
@@ -276,7 +278,7 @@ func main() {
go listenAndServeHTTP(httpAddr, muxRouter)
}
SignalHandlerLoop(router)
common.SignalHandlerLoop(router)
}
func options() map[string]string {