Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
vagababov committed Jul 19, 2019
1 parent 8aa5206 commit e934cee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions vendor/knative.dev/pkg/ptr/ptr.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,9 @@ func String(s string) *string {
func Duration(t time.Duration) *time.Duration {
return &t
}

// Time is a helper for turning a const time.Time into a pointer for use in
// API types that want *time.Duration.
func Time(t time.Time) *time.Time {
return &t
}

0 comments on commit e934cee

Please sign in to comment.