mirror of
https://github.com/go-task/task.git
synced 2026-07-08 22:46:07 +00:00
update dependencies
also make sure the module that enables /dev/null path of the sh interpreter is enabled
This commit is contained in:
5
vendor/github.com/Masterminds/sprig/date.go
generated
vendored
5
vendor/github.com/Masterminds/sprig/date.go
generated
vendored
@@ -69,3 +69,8 @@ func dateAgo(date interface{}) string {
|
||||
duration := time.Since(t) / time.Second * time.Second
|
||||
return duration.String()
|
||||
}
|
||||
|
||||
func toDate(fmt, str string) time.Time {
|
||||
t, _ := time.ParseInLocation(fmt, str, time.Local)
|
||||
return t
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user