feat: gitea: vendor + fix heatmap

This commit is contained in:
2026-05-31 23:17:43 +00:00
parent a8da44d438
commit cb50e80989
5648 changed files with 692254 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
// Copyright 2025 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package util
func GetMapValueOrDefault[T any](m map[string]any, key string, defaultValue T) T {
if value, ok := m[key]; ok {
if v, ok := value.(T); ok {
return v
}
}
return defaultValue
}