5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-24 21:21:34 +00:00
matterbridge/vendor/github.com/slack-go/slack/internal/timex/timex.go

19 lines
223 B
Go
Raw Normal View History

2019-09-07 20:46:58 +00:00
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
}