Fix some random Go nits.

This commit is contained in:
jregan
2019-06-25 20:46:56 -07:00
parent 69d40bd740
commit cc0fffc67b
9 changed files with 22 additions and 50 deletions

View File

@@ -19,8 +19,8 @@ type plugin struct {
t transformers.Transformer
}
//noinspection GoUnusedGlobalVariable
//nolint: golint
//noinspection GoUnusedGlobalVariable
var KustomizePlugin plugin
func (p *plugin) makePrefixSuffixPluginConfig() ([]byte, error) {

View File

@@ -21,8 +21,8 @@ type plugin struct {
Keys []string `json:"keys,omitempty" yaml:"keys,omitempty"`
}
//noinspection GoUnusedGlobalVariable
//nolint: golint
//noinspection GoUnusedGlobalVariable
var KustomizePlugin plugin
var database = map[string]string{

View File

@@ -19,8 +19,8 @@ type plugin struct {
Port string `json:"port,omitempty" yaml:"port,omitempty"`
}
//noinspection GoUnusedGlobalVariable
//nolint: golint
//noinspection GoUnusedGlobalVariable
var KustomizePlugin plugin
const tmpl = `

View File

@@ -24,8 +24,8 @@ type metaData struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
}
//noinspection GoUnusedGlobalVariable
//nolint: golint
//noinspection GoUnusedGlobalVariable
var KustomizePlugin plugin
func (p *plugin) makePrefixSuffixPluginConfig(n string) ([]byte, error) {