depends

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

View Source
const (
	// BloodTypeA : AA or AO
	BloodTypeA = BloodType("A")
	// BloodTypeB : BB or BO
	BloodTypeB = BloodType("B")
	// BloodTypeAB : AB
	BloodTypeAB = BloodType("AB")
	// BloodTypeO : O
	BloodTypeO = BloodType("O")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BloodType

type BloodType string

BloodType : type of blood

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/depends01.Skill)

func (*Skill) UnmarshalJSON

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

UnmarshalJSON : (generated from github.com/podhmo/strangejson/examples/depends01.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"`
	Birth     time.Time `json:"birth" required:"false"`
	BloodType BloodType `json:"bloodtype"`
	Skills    []Skill   `json:"skills"`
}

User : user

func (*User) FormatCheck

func (x *User) FormatCheck() error

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

func (*User) UnmarshalJSON

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

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

Jump to

Keyboard shortcuts

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