From d9c158445d6f28348104a4ad4a9ac5a2fbba841a Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Wed, 21 Nov 2018 18:12:00 +0300 Subject: [PATCH] add OptFieldTypeTime comment --- field.go | 2 ++ 1 file changed, 2 insertions(+) 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 != "" {