0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-01-07 01:20:52 +00:00
crazy-max_diun/vendor/github.com/nlopes/slack/internal/timex/timex.go
2024-12-14 22:30:21 +01:00

18 lines
223 B
Go

package timex
import "time"
// Max returns the maximum duration
func Max(values ...time.Duration) time.Duration {
var (
max time.Duration
)
for _, v := range values {
if v > max {
max = v
}
}
return max
}