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 TypeBooleanValue = 1 << iota // string TypeStringValue // time.Time TypeDateTimeValue // int8 TypeBitValue // int16 TypeSmallIntegerValue // int32 TypeInteger32Value // int TypeIntegerValue // int64 TypeBigIntegerValue // uint8 TypePositiveBitValue // uint16 TypePositiveSmallIntegerValue // uint32 TypePositiveInteger32Value // uint TypePositiveIntegerValue // uint64 TypePositiveBigIntegerValue // float32 TypeFloatValue // float64 TypeDoubleValue // struct TypeStructValue // slice TypeSliceValue // map TypeMapValue )
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 IsBasicType ¶
func IsDateTime ¶
func IsSliceType ¶
func IsStructType ¶
func IsUInteger ¶
func StripSlashes ¶
StripSlashes() 函数删除由 AddSlashes() 函数添加的反斜杠。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.