add OptFieldTypeTime comment

This commit is contained in:
Yuce Tekol 2018-11-21 18:12:00 +03:00
parent 3d54f737cd
commit d9c158445d
No known key found for this signature in database
GPG key ID: CB59E46D2FB90573

View file

@ -131,6 +131,8 @@ func OptFieldTypeInt(min, max int64) FieldOption {
}
}
// OptFieldTypeTime sets the field type to time.
// Pass true to skip creation of the standard view.
func OptFieldTypeTime(timeQuantum TimeQuantum, opt ...bool) FieldOption {
return func(fo *FieldOptions) error {
if fo.Type != "" {