diff --git a/dashboard/assets.go b/dashboard/assets.go index eb16409d1d..3b7e7dd35b 100644 --- a/dashboard/assets.go +++ b/dashboard/assets.go @@ -161,7 +161,7 @@ func AssetNames() []string { // _bindata is a table, holding each asset generator, mapped to its name. var _bindata = map[string]func() (*asset, error){ - "public/bundle.js": publicBundleJs, + "public/bundle.js": publicBundleJs, "public/dashboard.html": publicDashboardHtml, } @@ -204,10 +204,11 @@ type bintree struct { Func func() (*asset, error) Children map[string]*bintree } + var _bintree = &bintree{nil, map[string]*bintree{ - "public": &bintree{nil, map[string]*bintree{ - "bundle.js": &bintree{publicBundleJs, map[string]*bintree{}}, - "dashboard.html": &bintree{publicDashboardHtml, map[string]*bintree{}}, + "public": {nil, map[string]*bintree{ + "bundle.js": {publicBundleJs, map[string]*bintree{}}, + "dashboard.html": {publicDashboardHtml, map[string]*bintree{}}, }}, }} @@ -257,4 +258,3 @@ func _filePath(dir, name string) string { cannonicalName := strings.Replace(name, "\\", "/", -1) return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...) } - diff --git a/dashboard/config.go b/dashboard/config.go index c4862c3b5d..57d902aeeb 100644 --- a/dashboard/config.go +++ b/dashboard/config.go @@ -41,5 +41,5 @@ type Config struct { // Assets offers a possibility to manually set the dashboard website's location on the server side. // It is useful for debugging, avoids the repeated generation of the binary. - Assets string `toml:",omitempty"` + Assets string `toml:",omitempty"` } diff --git a/dashboard/dashboard.go b/dashboard/dashboard.go index d192460b49..26502ed9a0 100644 --- a/dashboard/dashboard.go +++ b/dashboard/dashboard.go @@ -65,8 +65,8 @@ type message struct { // client represents active websocket connection with a remote browser. type client struct { conn *websocket.Conn // Particular live websocket connection - msg chan message // Message queue for the update messages - logger log.Logger // Logger for the particular live websocket connection + msg chan message // Message queue for the update messages + logger log.Logger // Logger for the particular live websocket connection } // charts contains the collected data samples.