simple00

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Skill

type Skill struct {
	Name string `json:"name"`
}

Skill :

func (*Skill) FormatCheck

func (x *Skill) FormatCheck() error

FormatCheck : (generated from github.com/podhmo/strangejson/examples/simple00.Skill)

func (*Skill) UnmarshalJSON

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

UnmarshalJSON : (generated from github.com/podhmo/strangejson/examples/simple00.Skill)

type User

type User struct {
	// Name : name of user
	Name     string `json:"name" required:"true"`
	Age      int    `json:"age"` // no required option, treated as required
	NickName string `json:"nickname" required:"false"`
}

User : user

func (*User) FormatCheck

func (x *User) FormatCheck() error

FormatCheck : (generated from github.com/podhmo/strangejson/examples/simple00.User)

func (*User) UnmarshalJSON

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

UnmarshalJSON : (generated from github.com/podhmo/strangejson/examples/simple00.User)

Jump to

Keyboard shortcuts

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