update go mod, fix possible typecasting issues

This commit is contained in:
2026-05-28 20:18:55 +00:00
parent 01c1d3cf60
commit a9d55673c7
3 changed files with 17 additions and 13 deletions
+8
View File
@@ -65,3 +65,11 @@ func AnyPrefixes(s string, prefixes []string) string {
return ""
}
func SafeUint64(i int) uint64 {
if i < 0 {
log.Printf("Tried to cast %d to uint64", i)
return 0
}
return uint64(i)
}