From 5aa633948e023958c92c992adcb895499c638154 Mon Sep 17 00:00:00 2001 From: stayweek <165480133+stayweek@users.noreply.github.com> Date: Mon, 1 Apr 2024 17:16:29 +0800 Subject: [PATCH] chore: use the built-in slices library (#3172) Signed-off-by: stayweek --- server/route/api/v1/tag.go | 2 +- server/route/api/v2/user_service.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/route/api/v1/tag.go b/server/route/api/v1/tag.go index e75416a2e..72da0ccc0 100644 --- a/server/route/api/v1/tag.go +++ b/server/route/api/v1/tag.go @@ -5,10 +5,10 @@ import ( "fmt" "net/http" "regexp" + "slices" "sort" "github.com/labstack/echo/v4" - "golang.org/x/exp/slices" "github.com/usememos/memos/store" ) diff --git a/server/route/api/v2/user_service.go b/server/route/api/v2/user_service.go index d595f73cb..547899939 100644 --- a/server/route/api/v2/user_service.go +++ b/server/route/api/v2/user_service.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "net/http" + "slices" "strings" "time" @@ -12,7 +13,6 @@ import ( "github.com/labstack/echo/v4" "github.com/pkg/errors" "golang.org/x/crypto/bcrypt" - "golang.org/x/exp/slices" expr "google.golang.org/genproto/googleapis/api/expr/v1alpha1" "google.golang.org/grpc/codes" "google.golang.org/grpc/status"