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:
Mark Gritter
2020-09-09 15:53:51 -05:00
committed by GitHub
parent 0ff7ce975a
commit de9e019088
10 changed files with 255 additions and 4 deletions

View File

@@ -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())
}