forked from lug/matterbridge
Update dependencies (#1610)
* Update dependencies * Update module to go 1.17
This commit is contained in:
5
vendor/github.com/spf13/cast/cast.go
generated
vendored
5
vendor/github.com/spf13/cast/cast.go
generated
vendored
@@ -20,6 +20,11 @@ func ToTime(i interface{}) time.Time {
|
||||
return v
|
||||
}
|
||||
|
||||
func ToTimeInDefaultLocation(i interface{}, location *time.Location) time.Time {
|
||||
v, _ := ToTimeInDefaultLocationE(i, location)
|
||||
return v
|
||||
}
|
||||
|
||||
// ToDuration casts an interface to a time.Duration type.
|
||||
func ToDuration(i interface{}) time.Duration {
|
||||
v, _ := ToDurationE(i)
|
||||
|
||||
Reference in New Issue
Block a user