Skip to content

Commit d77d780

Browse files
author
Didip Kerabat
committed
Update to v8
1 parent 06af52f commit d77d780

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ package main
3636
import (
3737
"net/http"
3838

39-
"github.com/didip/tollbooth/v7"
40-
"github.com/didip/tollbooth/v7/limiter"
39+
"github.com/didip/tollbooth/v8"
40+
"github.com/didip/tollbooth/v8/limiter"
4141
)
4242

4343
func HelloHandler(w http.ResponseWriter, req *http.Request) {
@@ -66,8 +66,8 @@ func main() {
6666
import (
6767
"time"
6868

69-
"github.com/didip/tollbooth/v7"
70-
"github.com/didip/tollbooth/v7/limiter"
69+
"github.com/didip/tollbooth/v8"
70+
"github.com/didip/tollbooth/v8/limiter"
7171
)
7272

7373
lmt := tollbooth.NewLimiter(1, nil)

libstring/libstring.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net/http"
77
"strings"
88

9-
"github.com/didip/tollbooth/v7/limiter"
9+
"github.com/didip/tollbooth/v8/limiter"
1010
)
1111

1212
// StringInSlice finds needle in a slice of strings.

libstring/libstring_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strings"
66
"testing"
77

8-
"github.com/didip/tollbooth/v7/limiter"
8+
"github.com/didip/tollbooth/v8/limiter"
99
)
1010

1111
func TestStringInSlice(t *testing.T) {

limiter/limiter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
cache "github.com/go-pkgz/expirable-cache/v3"
1010

11-
"github.com/didip/tollbooth/v7/internal/time/rate"
11+
"github.com/didip/tollbooth/v8/internal/time/rate"
1212
)
1313

1414
// New is a constructor for Limiter.

tollbooth.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"net/http"
88
"strings"
99

10-
"github.com/didip/tollbooth/v7/errors"
11-
"github.com/didip/tollbooth/v7/libstring"
12-
"github.com/didip/tollbooth/v7/limiter"
10+
"github.com/didip/tollbooth/v8/errors"
11+
"github.com/didip/tollbooth/v8/libstring"
12+
"github.com/didip/tollbooth/v8/limiter"
1313
)
1414

1515
// setResponseHeaders configures X-Rate-Limit-Limit and X-Rate-Limit-Duration

tollbooth_benchmark_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"testing"
88
"time"
99

10-
"github.com/didip/tollbooth/v7/limiter"
10+
"github.com/didip/tollbooth/v8/limiter"
1111
)
1212

1313
func BenchmarkLimitByKeys(b *testing.B) {

tollbooth_bug_report_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/didip/tollbooth/v7/limiter"
9+
"github.com/didip/tollbooth/v8/limiter"
1010
)
1111

1212
// See: https://github.com/didip/tollbooth/issues/48

tollbooth_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"testing"
1010
"time"
1111

12-
"github.com/didip/tollbooth/v7/limiter"
12+
"github.com/didip/tollbooth/v8/limiter"
1313
)
1414

1515
func TestLimitByKeys(t *testing.T) {

0 commit comments

Comments
 (0)