ref

package
v0.0.0-...-2c5f5e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func In

func In(o interface{}, scope ...interface{}) bool

func InSlice

func InSlice(o interface{}, slice interface{}) bool

func Is

func Is(o1, o2 interface{}) bool

func PeelOffPtr

func PeelOffPtr(i interface{}) interface{}

Types

type Entity

type Entity struct {
	// contains filtered or unexported fields
}

func New

func New(o interface{}) *Entity

func (*Entity) GetData

func (e *Entity) GetData() interface{}

func (*Entity) GetKind

func (e *Entity) GetKind() reflect.Kind

func (*Entity) GetOriData

func (e *Entity) GetOriData() interface{}

func (*Entity) GetOriKind

func (e *Entity) GetOriKind() reflect.Kind

func (*Entity) GetOriType

func (e *Entity) GetOriType() reflect.Type

func (*Entity) GetOriValue

func (e *Entity) GetOriValue() reflect.Value

func (*Entity) GetType

func (e *Entity) GetType() reflect.Type

func (*Entity) GetValue

func (e *Entity) GetValue() reflect.Value

func (*Entity) IsArray

func (e *Entity) IsArray() bool

func (*Entity) IsBool

func (e *Entity) IsBool() bool

func (*Entity) IsChan

func (e *Entity) IsChan() bool

func (*Entity) IsComplex

func (e *Entity) IsComplex() bool

func (*Entity) IsFloat

func (e *Entity) IsFloat() bool

func (*Entity) IsFunc

func (e *Entity) IsFunc() bool

func (*Entity) IsInt

func (e *Entity) IsInt() bool

---------------------------------------------------------------------------------------------------------------------

func (*Entity) IsInterface

func (e *Entity) IsInterface() bool

---------------------------------------------------------------------------------------------------------------------

func (*Entity) IsKind

func (e *Entity) IsKind(kinds ...reflect.Kind) bool

func (*Entity) IsMap

func (e *Entity) IsMap() bool

func (*Entity) IsNumber

func (e *Entity) IsNumber() bool

func (*Entity) IsOriKind

func (e *Entity) IsOriKind(kinds ...reflect.Kind) bool

func (*Entity) IsPtr

func (e *Entity) IsPtr() bool

func (*Entity) IsSlice

func (e *Entity) IsSlice() bool

---------------------------------------------------------------------------------------------------------------------

func (*Entity) IsString

func (e *Entity) IsString() bool

func (*Entity) IsStringOrNumber

func (e *Entity) IsStringOrNumber() bool

func (*Entity) IsStruct

func (e *Entity) IsStruct() bool

func (*Entity) IsUint

func (e *Entity) IsUint() bool

func (*Entity) IsUintPtr

func (e *Entity) IsUintPtr() bool

func (*Entity) IsUnsafePointer

func (e *Entity) IsUnsafePointer() bool

func (*Entity) MapGet

func (e *Entity) MapGet(key interface{}) (value interface{}, ok bool)

func (*Entity) MapHas

func (e *Entity) MapHas(key interface{}) bool

func (*Entity) MapKeys

func (e *Entity) MapKeys() (keys []interface{}, ok bool)

func (*Entity) MapLen

func (e *Entity) MapLen() (l int, ok bool)

func (*Entity) SliceGet

func (e *Entity) SliceGet(index int) (interface{}, bool)

func (*Entity) SliceLen

func (e *Entity) SliceLen() (int, bool)

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 (e *Entity) StructFieldsName() ([]string, bool)

func (*Entity) StructMethodCall

func (e *Entity) StructMethodCall(methodName string, args ...interface{}) (result []interface{}, err error)

func (*Entity) StructMethodGet

func (e *Entity) StructMethodGet(name string) (method *reflect.Method, ok bool)

func (*Entity) StructMethods

func (e *Entity) StructMethods() (methods map[string]*reflect.Method, ok bool)

func (*Entity) StructTagGet

func (e *Entity) StructTagGet(fieldName, tagName string) (tag string, ok bool)

func (*Entity) StructValueGet

func (e *Entity) StructValueGet(name string) (value interface{}, ok bool)

func (*Entity) StructValues

func (e *Entity) StructValues() (map[string]interface{}, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL