dashboard: gofmt -s -w .

This commit is contained in:
Kurkó Mihály 2017-11-14 15:54:41 +02:00
parent ba8fa4d998
commit 5c4c879b1a
3 changed files with 8 additions and 8 deletions

View file

@ -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, "/")...)...)
}

View file

@ -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"`
}

View file

@ -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.