convertor

package
Version: v0.0.0-...-c3723d7 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMapKeys

func GetMapKeys(o interface{}) []reflect.Value

map类型数据的 keys

func GetMapValue

func GetMapValue(o interface{}, key reflect.Value) reflect.Value

map类型数据的 key 对应数数据

func GetValue

func GetValue(o interface{}) reflect.Value

数据的值

func GetValueElem

func GetValueElem(o interface{}) reflect.Value

数据的值的成员

func GetValueElemField

func GetValueElemField(o interface{}, i int) reflect.Value

数据的值的成员的值

func GetValueElemType

func GetValueElemType(o interface{}) reflect.Type

数据的值的成员类型

func GetValueElemTypeField

func GetValueElemTypeField(o interface{}, i int) reflect.StructField

数据的值的成员类型的值

func GetValueKind

func GetValueKind(o interface{}) reflect.Kind

数据的值类型

Types

type Tag

type Tag struct {
	Key       string
	Value     string
	FiledName string
	Args      []string
}

type Transform

type Transform struct {
	OutputObj  interface{}
	InsertObj  interface{}
	TimeFormat string
}

func NewTransform

func NewTransform(outObj, inObj interface{}, timeFormat string) *Transform

func (*Transform) CallOutFunc

func (t *Transform) CallOutFunc(tag *Tag) reflect.Value

call out func

func (*Transform) Transformer

func (t *Transform) Transformer() error

Source Files

Jump to

Keyboard shortcuts

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