all: fix minor lint errors

Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/159

Reviewed By: dlvhdr

Differential Revision: D18476131

fbshipit-source-id: 9e792f5a35f25233aad73f75f12d13d215a21ad2
This commit is contained in:
Ariel Mashraki
2019-11-13 06:00:26 -08:00
committed by Facebook Github Bot
parent a4f82f2331
commit 6ce4cb6803
5 changed files with 7 additions and 4 deletions

View File

@@ -6,8 +6,10 @@ package field
import "strings"
// A Type represents a field type.
type Type uint8
// List of field types.
const (
TypeInvalid Type = iota
TypeBool
@@ -62,6 +64,8 @@ func (t Type) ConstName() string {
}
}
// TypeInfo holds the information regarding field type.
// Used by complex types like JSON and Bytes.
type TypeInfo struct {
Type Type
Ident string