Documentation ¶
Index ¶
Constants ¶
View Source
const (
TagName string = "json"
)
Variables ¶
This section is empty.
Functions ¶
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 MappedObjectInterface ¶
type MappedObjectInterface interface {
Get() (JsonFields, JsonFields)
}
type Struct ¶
type Struct struct {
// contains filtered or unexported fields
}
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
Click to show internal directories.
Click to hide internal directories.