chore: run go fix for Go 1.26 modernization
CI / Go vulnerabilities (push) Successful in 1m10s
CI / Build & Vet (push) Successful in 1m39s
CI / Frontend build (gate) (push) Successful in 1m42s
CI / Frontend QC (audit) (push) Successful in 56s
CI / Frontend QC (typecheck) (push) Successful in 1m36s
CI / Frontend QC (lint) (push) Successful in 1m51s
CI / Tests (prod) (push) Has been cancelled
CI / Tests (dev) (push) Has been cancelled
CI / Race (prod) (push) Has been cancelled
CI / Race (dev) (push) Has been cancelled

106 files: interface{}→any, strings.Split→SplitSeq, CutPrefix/Cut, strings.Builder, slices.Contains, remove redundant // +build directives, gofmt import ordering and indentation.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-07-09 17:25:23 +01:00
co-authored by Sisyphus
parent ef26bd59e9
commit 510828c924
107 changed files with 882 additions and 745 deletions
+4 -4
View File
@@ -121,7 +121,7 @@ func GenerateToken(userID string, role string) (string, string, error) {
return "", "", err
}
_, tokenString, err := TokenAuth.Encode(map[string]interface{}{
_, tokenString, err := TokenAuth.Encode(map[string]any{
"user_id": userID,
"role": role,
"jti": jti,
@@ -137,7 +137,7 @@ func VerifyToken(tokenString string, ctx context.Context) (userID string, role s
return "", "", "", err
}
var uidVal interface{}
var uidVal any
if err := token.Get("user_id", &uidVal); err != nil {
return "", "", "", fmt.Errorf("invalid user_id claim")
}
@@ -146,7 +146,7 @@ func VerifyToken(tokenString string, ctx context.Context) (userID string, role s
return "", "", "", fmt.Errorf("invalid user_id claim")
}
var roleVal interface{}
var roleVal any
if err := token.Get("role", &roleVal); err != nil {
return "", "", "", fmt.Errorf("invalid role claim")
}
@@ -155,7 +155,7 @@ func VerifyToken(tokenString string, ctx context.Context) (userID string, role s
return "", "", "", fmt.Errorf("invalid role claim")
}
var jtiVal interface{}
var jtiVal any
if err := token.Get("jti", &jtiVal); err != nil {
return "", "", "", fmt.Errorf("invalid jti claim")
}
-1
View File
@@ -1,5 +1,4 @@
//go:build test
// +build test
package auth
-1
View File
@@ -1,5 +1,4 @@
//go:build test
// +build test
package auth