mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-04 13:37:44 +00:00
Update dependencies (#886)
This commit is contained in:
18
vendor/github.com/nlopes/slack/internal/timex/timex.go
generated
vendored
Normal file
18
vendor/github.com/nlopes/slack/internal/timex/timex.go
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user