From 2b47fec26b162b2560f808a84e47318aff6a0cea Mon Sep 17 00:00:00 2001 From: Henry Hu Date: Wed, 3 Feb 2016 12:07:46 +0800 Subject: [PATCH] Go format the modified source codes... --- internal/encoding/parser.go | 2 +- plugins/inputs/exec/config.go | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/internal/encoding/parser.go b/internal/encoding/parser.go index 815832e94..5e52a0aa4 100644 --- a/internal/encoding/parser.go +++ b/internal/encoding/parser.go @@ -24,7 +24,7 @@ func (p *Parser) Parse(dataFormat string, out []byte, acc telegraf.Accumulator) var metric telegraf.Metric switch dataFormat { - case "","json": + case "", "json": var jsonOut interface{} err = json.Unmarshal(out, &jsonOut) if err != nil { diff --git a/plugins/inputs/exec/config.go b/plugins/inputs/exec/config.go index b413cde69..13fe05c71 100644 --- a/plugins/inputs/exec/config.go +++ b/plugins/inputs/exec/config.go @@ -1,13 +1,12 @@ package exec import ( - "github.com/influxdata/telegraf/internal/encoding/graphite" ) const ( -// DefaultSeparator is the default join character to use when joining multiple -// measurment parts in a template. + // DefaultSeparator is the default join character to use when joining multiple + // measurment parts in a template. DefaultSeparator = "." ) @@ -36,4 +35,3 @@ func (c *Config) WithDefaults() *Config { } return &d } -