gostruct

package
v0.0.0-...-f41bb3c Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fields

type Fields struct {
	Object     interface{}
	FieldsName []string
	FieldsMap  map[string]*structs.Field
}

func NewFields

func NewFields(v interface{}) *Fields

func (*Fields) Field

func (f *Fields) Field(name ...string) (*structs.Field, bool)

func (*Fields) FieldIndex

func (f *Fields) FieldIndex(idx int) (*structs.Field, bool)

func (*Fields) FieldTagValue

func (f *Fields) FieldTagValue(tag, value string) (*structs.Field, bool)

func (*Fields) FieldsTag

func (f *Fields) FieldsTag(tag string) ([]*structs.Field, []string, bool)

func (*Fields) Names

func (f *Fields) Names() [][]string

Jump to

Keyboard shortcuts

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