migration: go 1.21

This commit is contained in:
Larvan2
2023-09-17 17:05:13 +08:00
parent 2d3b9364bf
commit 33d41338ef
11 changed files with 20 additions and 63 deletions

View File

@ -16,7 +16,7 @@ func MinNonZeroDuration(a, b time.Duration) time.Duration {
if b == 0 {
return a
}
return Min(a, b)
return min(a, b)
}
// AbsDuration returns the absolute value of a time duration