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 ( // TypeBooleanValue bool TypeBooleanValue = iota + 100 // TypeBitValue int8 TypeBitValue // TypeSmallIntegerValue int16 TypeSmallIntegerValue // TypeInteger32Value int32 TypeInteger32Value // TypeIntegerValue int TypeIntegerValue // TypeBigIntegerValue int64 TypeBigIntegerValue // TypePositiveBitValue uint8 TypePositiveBitValue // TypePositiveSmallIntegerValue uint16 TypePositiveSmallIntegerValue // TypePositiveInteger32Value uint32 TypePositiveInteger32Value // TypePositiveIntegerValue uint TypePositiveIntegerValue // TypePositiveBigIntegerValue uint64 TypePositiveBigIntegerValue // TypeFloatValue float32 TypeFloatValue // TypeDoubleValue float64 TypeDoubleValue // TypeStringValue string TypeStringValue // TypeDateTimeValue time.Time TypeDateTimeValue // TypeStructValue struct TypeStructValue // TypeSliceValue slice TypeSliceValue // TypeMapValue map TypeMapValue = 500 )
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.