support

package
v0.0.0-...-01f0dfb Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: MIT Imports: 3 Imported by: 21

Documentation

Index

Constants

View Source
const (
	TagName string = "json"
)

Variables

This section is empty.

Functions

func IsEmpty

func IsEmpty(v reflect.Value) bool

Types

type ApiObject

type ApiObject struct {
	ForceFields JsonFields `json:"-"`
	NullFields  JsonFields `json:"-"`
}

func (ApiObject) Get

func (o ApiObject) Get() (JsonFields, JsonFields)

type JsonFields

type JsonFields []string

func (JsonFields) Has

func (j JsonFields) Has(v string) bool

type MapConfig

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

type MappedObjectInterface

type MappedObjectInterface interface {
	Get() (JsonFields, JsonFields)
}

type Struct

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

func New

func New(s interface{}) *Struct

Constructor for Struct

func (*Struct) Fields

func (s *Struct) Fields() []reflect.StructField

func (*Struct) Fill

func (s *Struct) Fill(out map[string]interface{}, nullFields, forceFields JsonFields)

func (*Struct) Map

func (s *Struct) Map(nullFields, forceFields JsonFields) map[string]interface{}

type TagOptions

type TagOptions []string

func (TagOptions) Has

func (o TagOptions) Has(k string) bool

Jump to

Keyboard shortcuts

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