diff --git a/field.go b/field.go index fd9918838..088c547d2 100644 --- a/field.go +++ b/field.go @@ -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 != "" {