all: update to Go 1.18

Bump go.mod and README.

Switch to upstream net/netip.

Use strings.Cut.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
Josh Bleecher Snyder
2022-03-16 16:09:48 -07:00
parent ae6bc4dd64
commit 42c9af45e1
20 changed files with 23 additions and 33 deletions

View File

@@ -6,10 +6,9 @@
package ratelimiter
import (
"net/netip"
"sync"
"time"
"golang.zx2c4.com/go118/netip"
)
const (

View File

@@ -6,10 +6,9 @@
package ratelimiter
import (
"net/netip"
"testing"
"time"
"golang.zx2c4.com/go118/netip"
)
type result struct {