model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Product Product `json:"product"`
	Count   int     `json:"count"`
}

Item :

func (*Item) FormatCheck

func (x *Item) FormatCheck() error

FormatCheck : (generated from github.com/podhmo/strangejson/examples/formatcheck05.Item)

func (*Item) UnmarshalJSON

func (x *Item) UnmarshalJSON(b []byte) error

UnmarshalJSON : (generated from github.com/podhmo/strangejson/examples/formatcheck05.Item)

type Order

type Order struct {
	OrderedAt time.Time `json:"orderedAt"`
	Items     []Item    `json:"items"`
}

Order :

func (*Order) FormatCheck

func (x *Order) FormatCheck() error

FormatCheck : (generated from github.com/podhmo/strangejson/examples/formatcheck05.Order)

func (*Order) UnmarshalJSON

func (x *Order) UnmarshalJSON(b []byte) error

UnmarshalJSON : (generated from github.com/podhmo/strangejson/examples/formatcheck05.Order)

type Product

type Product struct {
	Name  string `json:"name" required:"true" minLength:"1" maxLength:"255"`
	Price int    `json:"price"`
}

Product :

func (*Product) FormatCheck

func (x *Product) FormatCheck() error

FormatCheck : (generated from github.com/podhmo/strangejson/examples/formatcheck05.Product)

func (*Product) UnmarshalJSON

func (x *Product) UnmarshalJSON(b []byte) error

UnmarshalJSON : (generated from github.com/podhmo/strangejson/examples/formatcheck05.Product)

type Setting

type Setting struct {
	Products map[string]*Product `json:"products"`
}

Setting :

func (*Setting) FormatCheck

func (x *Setting) FormatCheck() error

FormatCheck : (generated from github.com/podhmo/strangejson/examples/formatcheck05.Setting)

func (*Setting) UnmarshalJSON

func (x *Setting) UnmarshalJSON(b []byte) error

UnmarshalJSON : (generated from github.com/podhmo/strangejson/examples/formatcheck05.Setting)

Jump to

Keyboard shortcuts

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