Documentation
¶
Overview ¶
Package reflectx
Reflect PKG Extensions in Go ¶
Supports:
string: Bool->String,Int->String,Uint->String,Float->String,Interface->String
bool: String->Bool,Bool->Bool
int: String->Int,Float->Int,Uint->Int,Int->Int
uint: String->Uint,Float->Uint,Int->Uint,Uint->Uint
float: String->Float,Int->Float,Uint->Float,Float->Float
struct: Struct->Struct
Index ¶
- func IsArray(typ reflect.Type) bool
- func IsBasicType(typ reflect.Type) bool
- func IsBool(typ reflect.Type) bool
- func IsFloat(typ reflect.Type) bool
- func IsInt(typ reflect.Type) bool
- func IsPtr(typ reflect.Type) bool
- func IsSlice(typ reflect.Type) bool
- func IsString(typ reflect.Type) bool
- func IsStruct(typ reflect.Type) bool
- func IsUint(typ reflect.Type) bool
- func ParseTag(structPtr, tagPtr interface{}, alias, tag string, recursive bool) ([]*reflect.StructField, []*reflect.Value, []interface{})
- func ParseTagWithRe(structPtr, tagPtr interface{}, alias, tag string, recursive bool, regex string) ([]*reflect.StructField, []*reflect.Value, []interface{})
- func SetValue(srcValue, distValue reflect.Value)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBasicType ¶
func ParseTagWithRe ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.