qref

package
v0.0.0-...-4155a33 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncCall

func FuncCall(f interface{}, args ...interface{}) []reflect.Value

func FuncCallByName

func FuncCallByName(myClass interface{}, funcName string, params ...interface{}) (out []reflect.Value, err error)

func FuncCallByNameSimple

func FuncCallByNameSimple(myClass interface{}, funcName string, params ...interface{}) (out []reflect.Value, err error)

func FuncInfo

func FuncInfo(f interface{}) *runtime.Func

func IsMapOrStruct

func IsMapOrStruct(v interface{}) bool

func IsPointable

func IsPointable(v interface{}) bool

func IterateMapSlice

func IterateMapSlice(in reflect.Value, doclone bool, callback IterateMapSliceCallback) (out reflect.Value, err error)

func MarshalLazy

func MarshalLazy(v interface{}) (string, error)

func ReflectValuesToList

func ReflectValuesToList(rvals []reflect.Value) []interface{}

func SuppressComplex

func SuppressComplex(v reflect.Value, container reflect.Value, key reflect.Value, callback SuppressComplexCallback) (bool, error)

Types

type IterateMapSliceCallback

type IterateMapSliceCallback func(val reflect.Value, pval reflect.Value) (err error)

type Mapi

type Mapi struct {
	Name    string
	NameTo  string
	Acts    []MapiAct
	Convert string
	Create  bool
}

type MapiAct

type MapiAct struct {
	Act  string
	Args []interface{}
}

type Mapper

type Mapper struct {
	Name string
	// contains filtered or unexported fields
}

func (*Mapper) Correspond

func (o *Mapper) Correspond(args []interface{}) interface{}

func (*Mapper) GetData

func (o *Mapper) GetData(key string) interface{}

func (*Mapper) Init

func (o *Mapper) Init(name string, options map[string]interface{}, inherit *Mapper)

func (*Mapper) Map

func (o *Mapper) Map(mo interface{}, clone bool) (rm map[string]interface{}, err error)

func (*Mapper) Maps

func (o *Mapper) Maps(m []interface{}, clone bool) (rms []interface{}, err error)

func (*Mapper) Replace

func (o *Mapper) Replace(args []interface{}) interface{}

func (*Mapper) SetData

func (o *Mapper) SetData(key string, val interface{})

func (*Mapper) TimeFormat

func (o *Mapper) TimeFormat(args []interface{}) interface{}

func (*Mapper) TimeUnix

func (o *Mapper) TimeUnix(args []interface{}) interface{}

type MapperManager

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

func GetMapperManager

func GetMapperManager() *MapperManager

func (*MapperManager) Get

func (o *MapperManager) Get(name string) *Mapper

func (*MapperManager) Init

func (o *MapperManager) Init(options map[string]interface{})

func (*MapperManager) Register

func (o *MapperManager) Register(name string, mapper *Mapper)

func (*MapperManager) UnRegister

func (o *MapperManager) UnRegister(name string)

type ReflectDelegate

type ReflectDelegate interface {
	Delegate() interface{}
}

type SuppressComplexCallback

type SuppressComplexCallback func(v reflect.Value, container reflect.Value, key reflect.Value) (bool, error)

Jump to

Keyboard shortcuts

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