mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
Add a time type for use in APIs. (#9911)
* Add a time type for use in APIs. * go mod vendor
This commit is contained in:
@@ -625,6 +625,8 @@ func (t FieldType) Zero() interface{} {
|
||||
return http.Header{}
|
||||
case TypeFloat:
|
||||
return 0.0
|
||||
case TypeTime:
|
||||
return time.Time{}
|
||||
default:
|
||||
panic("unknown type: " + t.String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user