Skip to content

Commit

Permalink
chore: bump to v2 (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma authored Jul 11, 2021
1 parent f9d0908 commit 1cd1939
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"testing"
"time"

"github.com/hamba/statter"
"github.com/hamba/statter/reporter/prometheus"
"github.com/hamba/statter/tags"
"github.com/hamba/statter/v2"
"github.com/hamba/statter/v2/reporter/prometheus"
"github.com/hamba/statter/v2/tags"
)

func BenchmarkStatter_Counter(b *testing.B) {
Expand Down
4 changes: 2 additions & 2 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package statter_test
import (
"time"

"github.com/hamba/statter"
"github.com/hamba/statter/tags"
"github.com/hamba/statter/v2"
"github.com/hamba/statter/v2/tags"
)

func ExampleCounter_Inc() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/hamba/statter
module github.com/hamba/statter/v2

go 1.16

Expand Down
2 changes: 1 addition & 1 deletion internal/bytes/buffer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/hamba/statter/internal/bytes"
"github.com/hamba/statter/v2/internal/bytes"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/stats/stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"sync"
"testing"

"github.com/hamba/statter/internal/stats"
"github.com/hamba/statter/v2/internal/stats"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion reporter/l2met/l2met.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package l2met
import (
"github.com/hamba/logger/v2"
"github.com/hamba/logger/v2/ctx"
"github.com/hamba/statter/internal/bytes"
"github.com/hamba/statter/v2/internal/bytes"
)

// L2met is a l2met client.
Expand Down
4 changes: 2 additions & 2 deletions reporter/l2met/l2met_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"

"github.com/hamba/logger/v2"
"github.com/hamba/statter"
l2met2 "github.com/hamba/statter/reporter/l2met"
"github.com/hamba/statter/v2"
l2met2 "github.com/hamba/statter/v2/reporter/l2met"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions reporter/prometheus/prometheus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

"github.com/hamba/statter"
"github.com/hamba/statter/reporter/prometheus"
"github.com/hamba/statter/v2"
"github.com/hamba/statter/v2/reporter/prometheus"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion reporter/statsd/statsd_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/cactus/go-statsd-client/v5/statsd"
"github.com/cactus/go-statsd-client/v5/statsd/statsdtest"
"github.com/hamba/statter"
"github.com/hamba/statter/v2"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"runtime"
"time"

"github.com/hamba/statter"
"github.com/hamba/statter/v2"
)

// DefaultRuntimeInterval is the default runtime collection interval.
Expand Down
4 changes: 2 additions & 2 deletions runtime/runtime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"
"time"

"github.com/hamba/statter"
"github.com/hamba/statter/runtime"
"github.com/hamba/statter/v2"
"github.com/hamba/statter/v2/runtime"
"github.com/stretchr/testify/mock"
)

Expand Down
2 changes: 1 addition & 1 deletion statter.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync/atomic"
"time"

"github.com/hamba/statter/internal/stats"
"github.com/hamba/statter/v2/internal/stats"
)

// DiscardReporter is a reporter that discards all stats.
Expand Down
4 changes: 2 additions & 2 deletions statter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"
"time"

"github.com/hamba/statter"
"github.com/hamba/statter/tags"
"github.com/hamba/statter/v2"
"github.com/hamba/statter/v2/tags"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
)
Expand Down
2 changes: 1 addition & 1 deletion tags/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package tags
import (
"strconv"

"github.com/hamba/statter"
"github.com/hamba/statter/v2"
)

// Str returns a string tag with the give key and value.
Expand Down
4 changes: 2 additions & 2 deletions tags/tags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package tags_test
import (
"testing"

"github.com/hamba/statter"
"github.com/hamba/statter/tags"
"github.com/hamba/statter/v2"
"github.com/hamba/statter/v2/tags"
"github.com/stretchr/testify/assert"
)

Expand Down

0 comments on commit 1cd1939

Please sign in to comment.