From d7ebd4e33e980eb863c19b1c0ff6d54bb436b856 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Tue, 13 Aug 2024 16:09:43 -0600 Subject: [PATCH] Using slices from Go 1.21 --- cmd/links/main.go | 3 +-- helpers.go | 2 +- slack/commands.go | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/links/main.go b/cmd/links/main.go index 0b2c48a..d0ab311 100644 --- a/cmd/links/main.go +++ b/cmd/links/main.go @@ -5,6 +5,7 @@ import ( "net/http" "net/url" "os" + "slices" "strings" "text/template" "time" @@ -26,8 +27,6 @@ import ( "github.com/alexedwards/scs/postgresstore" "github.com/alexedwards/scs/v2" - "golang.org/x/exp/slices" - work "git.sr.ht/~sircmpwn/dowork" "github.com/labstack/echo/v4" formguard "netlandish.com/x/gobwebs-formguard" diff --git a/helpers.go b/helpers.go index 252d688..fe007d0 100644 --- a/helpers.go +++ b/helpers.go @@ -17,6 +17,7 @@ import ( "net/url" "path/filepath" "regexp" + "slices" "strconv" "strings" "time" @@ -27,7 +28,6 @@ import ( "github.com/labstack/echo/v4" "github.com/segmentio/ksuid" "github.com/shopspring/decimal" - "golang.org/x/exp/slices" "golang.org/x/net/html" "golang.org/x/text/cases" "golang.org/x/text/language" diff --git a/slack/commands.go b/slack/commands.go index dcfa1ec..e7282a9 100644 --- a/slack/commands.go +++ b/slack/commands.go @@ -8,12 +8,12 @@ import ( "links/models" "net/http" "net/url" + "slices" "strings" "git.sr.ht/~emersion/gqlclient" sq "github.com/Masterminds/squirrel" "github.com/labstack/echo/v4" - "golang.org/x/exp/slices" "netlandish.com/x/gobwebs/auth" "netlandish.com/x/gobwebs/database" "netlandish.com/x/gobwebs/server" -- 2.45.2