fix field interface
This commit is contained in:
parent
3443251be2
commit
0de6ad6e67
2
lib.go
2
lib.go
@ -97,7 +97,7 @@ func (f Field) Name() string {
|
|||||||
func (f Field) List() bool { return f.list }
|
func (f Field) List() bool { return f.list }
|
||||||
|
|
||||||
// Type returns the scalar type of the field.
|
// Type returns the scalar type of the field.
|
||||||
func (f Field) Type() reflect.Kind {
|
func (f Field) Type() FieldType {
|
||||||
if !f.input {
|
if !f.input {
|
||||||
return f.typ
|
return f.typ
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user