Move pkg/util.Time to pkg/api/unversioned.Time
Along with our time.Duration wrapper, as suggested by @lavalamp.
This commit is contained in:
6
third_party/golang/template/exec.go
vendored
6
third_party/golang/template/exec.go
vendored
@@ -2,9 +2,10 @@
|
||||
//The original private functions indirect and printableValue
|
||||
//are exported as public functions.
|
||||
package template
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"fmt"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
var Indirect = indirect
|
||||
@@ -15,7 +16,6 @@ var (
|
||||
fmtStringerType = reflect.TypeOf((*fmt.Stringer)(nil)).Elem()
|
||||
)
|
||||
|
||||
|
||||
// indirect returns the item at the end of indirection, and a bool to indicate if it's nil.
|
||||
// We indirect through pointers and empty interfaces (only) because
|
||||
// non-empty interfaces have methods we might need.
|
||||
@@ -91,4 +91,4 @@ func isTrue(val reflect.Value) (truth, ok bool) {
|
||||
return
|
||||
}
|
||||
return truth, true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user