Documentation
¶
Index ¶
- func In(o interface{}, scope ...interface{}) bool
- func InSlice(o interface{}, slice interface{}) bool
- func Is(o1, o2 interface{}) bool
- func PeelOffPtr(i interface{}) interface{}
- type Entity
- func (e *Entity) GetData() interface{}
- func (e *Entity) GetKind() reflect.Kind
- func (e *Entity) GetOriData() interface{}
- func (e *Entity) GetOriKind() reflect.Kind
- func (e *Entity) GetOriType() reflect.Type
- func (e *Entity) GetOriValue() reflect.Value
- func (e *Entity) GetType() reflect.Type
- func (e *Entity) GetValue() reflect.Value
- func (e *Entity) IsArray() bool
- func (e *Entity) IsBool() bool
- func (e *Entity) IsChan() bool
- func (e *Entity) IsComplex() bool
- func (e *Entity) IsFloat() bool
- func (e *Entity) IsFunc() bool
- func (e *Entity) IsInt() bool
- func (e *Entity) IsInterface() bool
- func (e *Entity) IsKind(kinds ...reflect.Kind) bool
- func (e *Entity) IsMap() bool
- func (e *Entity) IsNumber() bool
- func (e *Entity) IsOriKind(kinds ...reflect.Kind) bool
- func (e *Entity) IsPtr() bool
- func (e *Entity) IsSlice() bool
- func (e *Entity) IsString() bool
- func (e *Entity) IsStringOrNumber() bool
- func (e *Entity) IsStruct() bool
- func (e *Entity) IsUint() bool
- func (e *Entity) IsUintPtr() bool
- func (e *Entity) IsUnsafePointer() bool
- func (e *Entity) MapGet(key interface{}) (value interface{}, ok bool)
- func (e *Entity) MapHas(key interface{}) bool
- func (e *Entity) MapKeys() (keys []interface{}, ok bool)
- func (e *Entity) MapLen() (l int, ok bool)
- func (e *Entity) SliceGet(index int) (interface{}, bool)
- func (e *Entity) SliceLen() (int, bool)
- func (e *Entity) StructFieldGet(name string) (field *reflect.StructField, ok bool)
- func (e *Entity) StructFields() (map[string]*reflect.StructField, bool)
- func (e *Entity) StructFieldsName() ([]string, bool)
- func (e *Entity) StructMethodCall(methodName string, args ...interface{}) (result []interface{}, err error)
- func (e *Entity) StructMethodGet(name string) (method *reflect.Method, ok bool)
- func (e *Entity) StructMethods() (methods map[string]*reflect.Method, ok bool)
- func (e *Entity) StructTagGet(fieldName, tagName string) (tag string, ok bool)
- func (e *Entity) StructValueGet(name string) (value interface{}, ok bool)
- func (e *Entity) StructValues() (map[string]interface{}, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PeelOffPtr ¶
func PeelOffPtr(i interface{}) interface{}
Types ¶
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func (*Entity) GetOriData ¶
func (e *Entity) GetOriData() interface{}
func (*Entity) GetOriKind ¶
func (*Entity) GetOriType ¶
func (*Entity) GetOriValue ¶
func (*Entity) IsInt ¶
---------------------------------------------------------------------------------------------------------------------
func (*Entity) IsInterface ¶
---------------------------------------------------------------------------------------------------------------------
func (*Entity) IsSlice ¶
---------------------------------------------------------------------------------------------------------------------
func (*Entity) IsStringOrNumber ¶
func (*Entity) IsUnsafePointer ¶
func (*Entity) StructFieldGet ¶
func (e *Entity) StructFieldGet(name string) (field *reflect.StructField, ok bool)
func (*Entity) StructFields ¶
func (e *Entity) StructFields() (map[string]*reflect.StructField, bool)
func (*Entity) StructFieldsName ¶
func (*Entity) StructMethodCall ¶
func (*Entity) StructMethodGet ¶
func (*Entity) StructMethods ¶
func (*Entity) StructTagGet ¶
func (*Entity) StructValueGet ¶
func (*Entity) StructValues ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.