Skip to content

Commit a8a3afe

Browse files
committed
update dependencies
1 parent de4f462 commit a8a3afe

File tree

186 files changed

+694
-689
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+694
-689
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
go_version: [1.24.x]
20+
go_version: [1.25.x]
2121
steps:
2222

2323
- name: Check out code into the Go module directory

HISTORY.md

Lines changed: 24 additions & 24 deletions
Large diffs are not rendered by default.

_examples/auth/basicauth/database/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module myapp
22

3-
go 1.24.3
3+
go 1.25
44

55
require (
66
github.com/go-sql-driver/mysql v1.9.2

_examples/auth/basicauth/database/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func main() {
4545
}
4646

4747
// Validate a user from database.
48-
allowFunc := func(ctx iris.Context, username, password string) (interface{}, bool) {
48+
allowFunc := func(ctx iris.Context, username, password string) (any, bool) {
4949
user, err := db.getUserByUsernameAndPassword(context.Background(), username, password)
5050
return user, err == nil
5151
}

_examples/auth/basicauth/users_list/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func main() {
3838
},
3939
// The users can be a slice of custom users structure
4040
// or a map[string]string (username:password)
41-
// or []map[string]interface{} with username and passwords required fields,
41+
// or []map[string]any with username and passwords required fields,
4242
// read the godocs for more.
4343
Allow: basicauth.AllowUsers(users),
4444
}

_examples/auth/jwt/blocklist/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func main() {
4444
//
4545
// And then register it:
4646
verifier.Blocklist = blocklist
47-
verifyMiddleware := verifier.Verify(func() interface{} {
47+
verifyMiddleware := verifier.Verify(func() any {
4848
return new(userClaims)
4949
})
5050

_examples/auth/jwt/middleware/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func main() {
3434
verifier.WithDefaultBlocklist()
3535
// Enable payload decryption with:
3636
// verifier.WithDecryption(encKey, nil)
37-
verifyMiddleware := verifier.Verify(func() interface{} {
37+
verifyMiddleware := verifier.Verify(func() any {
3838
return new(fooClaims)
3939
})
4040

_examples/auth/jwt/refresh-token/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func main() {
6666

6767
protectedAPI := app.Party("/protected")
6868
{
69-
verifyMiddleware := verifier.Verify(func() interface{} {
69+
verifyMiddleware := verifier.Verify(func() any {
7070
return new(UserClaims)
7171
})
7272

_examples/auth/jwt/tutorial/api/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func Verify() iris.Handler {
4646

4747
verifier := jwt.NewVerifier(jwt.HS256, []byte(secret), jwt.Expected{Issuer: util.AppName})
4848
verifier.Extractors = []jwt.TokenExtractor{jwt.FromHeader} // extract token only from Authorization: Bearer $token
49-
return verifier.Verify(func() interface{} {
49+
return verifier.Verify(func() any {
5050
return new(UserClaims)
5151
})
5252
}

_examples/auth/jwt/tutorial/go-client/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func Do(method, url string, body io.Reader, opts ...RequestOption) (*http.Respon
6060
}
6161

6262
// JSON fires a request with "v" as client json data.
63-
func JSON(method, url string, v interface{}, opts ...RequestOption) (*http.Response, error) {
63+
func JSON(method, url string, v any, opts ...RequestOption) (*http.Response, error) {
6464
buf := new(bytes.Buffer)
6565
err := json.NewEncoder(buf).Encode(v)
6666
if err != nil {
@@ -85,7 +85,7 @@ func Form(method, url string, formData url.Values, opts ...RequestOption) (*http
8585
}
8686

8787
// BindResponse binds a response body to the "dest" pointer and closes the body.
88-
func BindResponse(resp *http.Response, dest interface{}) error {
88+
func BindResponse(resp *http.Response, dest any) error {
8989
contentType := resp.Header.Get("Content-Type")
9090
if idx := strings.IndexRune(contentType, ';'); idx > 0 {
9191
contentType = contentType[0:idx]

0 commit comments

Comments
 (0)