Documentation ¶
Index ¶
- Constants
- func AddSlashes(str string) string
- func GetTypeEnum(val reflect.Type) (ret int, err error)
- func IsBasicType(typeValue int) bool
- func IsBool(tType reflect.Type) bool
- func IsDateTime(tType reflect.Type) bool
- func IsFloat(tType reflect.Type) bool
- func IsInteger(tType reflect.Type) bool
- func IsMap(tType reflect.Type) bool
- func IsMapType(typeVal int) bool
- func IsNil(val reflect.Value) (ret bool)
- func IsSameVal(firstVal, secondVal reflect.Value) (ret bool, err error)
- func IsSlice(tType reflect.Type) bool
- func IsSliceType(typeValue int) bool
- func IsString(tType reflect.Type) bool
- func IsStruct(tType reflect.Type) bool
- func IsStructType(typeValue int) bool
- func IsUInteger(tType reflect.Type) bool
- func StripSlashes(str string) string
Constants ¶
View Source
const ( // bool TypeBooleanField = 1 << iota // string TypeStringField // time.Time TypeDateTimeField // int8 TypeBitField // int16 TypeSmallIntegerField // int32 TypeInteger32Field // int TypeIntegerField // int64 TypeBigIntegerField // uint8 TypePositiveBitField // uint16 TypePositiveSmallIntegerField // uint32 TypePositiveInteger32Field // uint TypePositiveIntegerField // uint64 TypePositiveBigIntegerField // float32 TypeFloatField // float64 TypeDoubleField // struct TypeStructField // slice TypeSliceField // map TypeMapField )
Define the Type enum
Variables ¶
This section is empty.
Functions ¶
func AddSlashes ¶
AddSlashes() 函数返回在预定义字符之前添加反斜杠的字符串。 预定义字符是: 单引号(') 双引号(") 反斜杠(\)
func GetTypeEnum ¶
GetTypeEnum return field type as type constant from reflect.Value
func IsDateTime ¶
func IsUInteger ¶
func StripSlashes ¶
StripSlashes() 函数删除由 AddSlashes() 函数添加的反斜杠。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.