lib: Fix gofmt regression in golang 1.11.x

Golang has many exceptions to its "compatibility promise", including the
gofmt output. The fact that they change it arbitrarily for things like
this is absurd. (Remove the patch and run `gofmt` to see for yourself.)

This change re-worked the comment, since include the `gofmt` suggested
line break makes absolutely no sense, and is not convenient.
This commit is contained in:
James Shubin
2019-05-05 08:16:03 -04:00
parent 17fd625f7f
commit e3cc6309ea

View File

@@ -25,8 +25,7 @@ import (
"github.com/purpleidea/mgmt/bindata" "github.com/purpleidea/mgmt/bindata"
"github.com/purpleidea/mgmt/gapi" "github.com/purpleidea/mgmt/gapi"
// these imports are so that GAPIs register themselves in init() _ "github.com/purpleidea/mgmt/lang" // import so the GAPI registers
_ "github.com/purpleidea/mgmt/lang"
_ "github.com/purpleidea/mgmt/langpuppet" _ "github.com/purpleidea/mgmt/langpuppet"
_ "github.com/purpleidea/mgmt/puppet" _ "github.com/purpleidea/mgmt/puppet"
_ "github.com/purpleidea/mgmt/yamlgraph" _ "github.com/purpleidea/mgmt/yamlgraph"