Documentation
¶
Overview ¶
Package types contains representations of the validator types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Type_name = map[int32]string{
0: "UNKNOWN",
101: "SINGLE_DOUBLE",
103: "SINGLE_INT",
104: "SINGLE_UINT",
108: "SINGLE_BOOL",
109: "SINGLE_STRING",
112: "SINGLE_BYTES",
201: "LIST_DOUBLE",
203: "LIST_INT",
204: "LIST_UINT",
208: "LIST_BOOL",
209: "LIST_STRING",
212: "LIST_BYTES",
}
View Source
var Type_value = map[string]int32{
"UNKNOWN": 0,
"SINGLE_DOUBLE": 101,
"SINGLE_INT": 103,
"SINGLE_UINT": 104,
"SINGLE_BOOL": 108,
"SINGLE_STRING": 109,
"SINGLE_BYTES": 112,
"LIST_DOUBLE": 201,
"LIST_INT": 203,
"LIST_UINT": 204,
"LIST_BOOL": 208,
"LIST_STRING": 209,
"LIST_BYTES": 212,
}
Functions ¶
Types ¶
type Type ¶
type Type int32
func FromGo ¶
FromGo is given the reflected type of a native type and returns the corresponding expression type.
func ListToSingle ¶
ListToSingle returns the respective type as if the type was not a list type.
func SingleToList ¶
SingleToList returns the list type of the respective type.
Click to show internal directories.
Click to hide internal directories.