Skip to content

Commit a14d64c

Browse files
committed
chore: remove exp slices package and use stdlib
1 parent d51e3ef commit a14d64c

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ require (
1919
github.com/tinyauthapp/paerser v0.0.0-20260410140347-85c3740d6298
2020
github.com/weppos/publicsuffix-go v0.50.3
2121
golang.org/x/crypto v0.50.0
22-
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546
2322
golang.org/x/oauth2 v0.36.0
2423
gotest.tools/v3 v3.5.2
2524
modernc.org/sqlite v1.49.1
@@ -117,6 +116,7 @@ require (
117116
go.opentelemetry.io/otel/sdk/metric v1.43.0 // indirect
118117
go.opentelemetry.io/otel/trace v1.43.0 // indirect
119118
golang.org/x/arch v0.22.0 // indirect
119+
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 // indirect
120120
golang.org/x/net v0.52.0 // indirect
121121
golang.org/x/sync v0.20.0 // indirect
122122
golang.org/x/sys v0.43.0 // indirect

internal/service/auth_service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ import (
1515
"github.com/tinyauthapp/tinyauth/internal/utils"
1616
"github.com/tinyauthapp/tinyauth/internal/utils/tlog"
1717

18+
"slices"
19+
1820
"github.com/gin-gonic/gin"
1921
"github.com/google/uuid"
2022
"golang.org/x/crypto/bcrypt"
21-
"golang.org/x/exp/slices"
2223
"golang.org/x/oauth2"
2324
)
2425

internal/service/oauth_broker_service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import (
44
"github.com/tinyauthapp/tinyauth/internal/config"
55
"github.com/tinyauthapp/tinyauth/internal/utils/tlog"
66

7-
"golang.org/x/exp/slices"
7+
"slices"
8+
89
"golang.org/x/oauth2"
910
)
1011

internal/service/oidc_service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ import (
1818
"strings"
1919
"time"
2020

21+
"slices"
22+
2123
"github.com/gin-gonic/gin"
2224
"github.com/go-jose/go-jose/v4"
2325
"github.com/tinyauthapp/tinyauth/internal/config"
2426
"github.com/tinyauthapp/tinyauth/internal/repository"
2527
"github.com/tinyauthapp/tinyauth/internal/utils"
2628
"github.com/tinyauthapp/tinyauth/internal/utils/tlog"
27-
"golang.org/x/exp/slices"
2829
)
2930

3031
var (

0 commit comments

Comments
 (0)