mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-03 22:27:44 +00:00
Update dependencies (#886)
This commit is contained in:
8
vendor/github.com/nlopes/slack/internal/errorsx/errorsx.go
generated
vendored
Normal file
8
vendor/github.com/nlopes/slack/internal/errorsx/errorsx.go
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
package errorsx
|
||||
|
||||
// String representing an error, useful for declaring string constants as errors.
|
||||
type String string
|
||||
|
||||
func (t String) Error() string {
|
||||
return string(t)
|
||||
}
|
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