structEngin

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StructEngin

type StructEngin struct {
	Fields        []interface{}
	Result        []map[string]interface{}
	TagName       string
	TagIgnoreName string
	ExtraCols     []string
}

type Type int

const (

Map Type = iota	// map[t.T]t.T
MapString
MapInt64
MapInterface
Slice	// []t.T
SliceString
SliceInterface
SliceInt64

)

func New

func New() *StructEngin

func (*StructEngin) AppendFields

func (s *StructEngin) AppendFields(arg interface{})

func (*StructEngin) AppendResult

func (s *StructEngin) AppendResult(arg map[string]interface{})

func (*StructEngin) GetFields

func (s *StructEngin) GetFields() []interface{}

func (*StructEngin) GetResult

func (s *StructEngin) GetResult() []map[string]interface{}

func (*StructEngin) GetStructFields

func (s *StructEngin) GetStructFields(data interface{}) []interface{}

func (*StructEngin) GetTagIgnoreName

func (s *StructEngin) GetTagIgnoreName() string

func (*StructEngin) GetTagName

func (s *StructEngin) GetTagName() string

func (*StructEngin) SetExtraCols

func (s *StructEngin) SetExtraCols(args []string) *StructEngin

func (*StructEngin) SetFields

func (s *StructEngin) SetFields(arg []interface{})

func (*StructEngin) SetResult

func (s *StructEngin) SetResult(arg []map[string]interface{})

func (*StructEngin) SetTagIgnoreName

func (s *StructEngin) SetTagIgnoreName(arg string) *StructEngin

func (*StructEngin) SetTagName

func (s *StructEngin) SetTagName(arg string) *StructEngin

func (*StructEngin) StructContent2Map

func (s *StructEngin) StructContent2Map(data interface{}) []map[string]interface{}

Jump to

Keyboard shortcuts

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