1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-29 21:48:14 +02:00

Replace interface{} with any (#2807)

like golang:
2580d0e08d
This commit is contained in:
qwerty287
2023-11-12 18:23:48 +01:00
committed by GitHub
parent fd77b2e9d7
commit 70711ed9db
35 changed files with 106 additions and 106 deletions

View File

@@ -39,7 +39,7 @@ func Config(c *gin.Context) {
).Sign(user.Hash)
}
configData := map[string]interface{}{
configData := map[string]any{
"user": user,
"csrf": csrf,
"version": version.String(),
@@ -50,7 +50,7 @@ func Config(c *gin.Context) {
// default func map with json parser.
funcMap := template.FuncMap{
"json": func(v interface{}) string {
"json": func(v any) string {
a, _ := json.Marshal(v)
return string(a)
},