diff options
author | Cameron Moore <moorereason@gmail.com> | 2018-09-06 11:02:32 -0500 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-09-07 08:25:51 +0200 |
commit | b8b91f550646b2620649c3504e14a441975bea9f (patch) | |
tree | 43884ec81f153aa63a25e6a51c3d187579024bda /common/types | |
parent | f0effac80426325040c4bc703cd610f434d0b5a8 (diff) |
common: Fix golint errors
common/errors/errors.go:21:1: comment on exported var FeatureNotAvailableErr should be of the form "FeatureNotAvailableErr ..."
common/errors/errors.go:23:5: error var FeatureNotAvailableErr should have name of the form ErrFoo
common/maps/scratch.go:76:1: comment on exported method Scratch.Delete should be of the form "Delete ..."
common/maps/scratch.go:133:1: exported function NewScratch should have comment or be unexported
common/types/types.go:44:1: exported function NewKeyValuesStrings should have comment or be unexported
Diffstat (limited to 'common/types')
-rw-r--r-- | common/types/types.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/types/types.go b/common/types/types.go index a5805d07a..fca58edcb 100644 --- a/common/types/types.go +++ b/common/types/types.go @@ -41,6 +41,8 @@ func (k KeyValues) String() string { return fmt.Sprintf("%v: %v", k.Key, k.Values) } +// NewKeyValuesStrings takes a given key and slice of values and returns a new +// KeyValues struct. func NewKeyValuesStrings(key string, values ...string) KeyValues { iv := make([]interface{}, len(values)) for i := 0; i < len(values); i++ { |