diff --git a/source/source_stats_reporter.go b/source/source_stats_reporter.go index 059ad66dd..7e2a5d343 100644 --- a/source/source_stats_reporter.go +++ b/source/source_stats_reporter.go @@ -18,9 +18,10 @@ package source import ( "context" + "strconv" + "go.opencensus.io/stats/view" "knative.dev/pkg/metrics" - "strconv" "go.opencensus.io/stats" "go.opencensus.io/tag" diff --git a/test/mako/alerter/slack/message_test.go b/test/mako/alerter/slack/message_test.go index fb8267181..89e10d50e 100644 --- a/test/mako/alerter/slack/message_test.go +++ b/test/mako/alerter/slack/message_test.go @@ -34,8 +34,8 @@ func TestMain(m *testing.M) { config: repoConfig{ repo: "test_repo", channels: []channel{ - channel{name: "test_channel1", identity: "fsfdsf"}, - channel{name: "test_channel2", identity: "fdsfhfdh"}, + {name: "test_channel1", identity: "fsfdsf"}, + {name: "test_channel2", identity: "fdsfhfdh"}, }, }, dryrun: false, diff --git a/tracing/opencensus.go b/tracing/opencensus.go index 9a6586f47..fabf14e14 100644 --- a/tracing/opencensus.go +++ b/tracing/opencensus.go @@ -9,7 +9,7 @@ import ( "contrib.go.opencensus.io/exporter/stackdriver" oczipkin "contrib.go.opencensus.io/exporter/zipkin" - "github.com/openzipkin/zipkin-go" + zipkin "github.com/openzipkin/zipkin-go" httpreporter "github.com/openzipkin/zipkin-go/reporter/http" "go.opencensus.io/trace" "go.uber.org/zap"