mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
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:
committed by
Facebook Github Bot
parent
a4f82f2331
commit
6ce4cb6803
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user