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 Skill ¶
type Skill struct {
Name string `json:"name"`
}
Skill :
func (*Skill) FormatCheck ¶
FormatCheck : (generated from github.com/podhmo/strangejson/examples/depends01.Skill)
func (*Skill) UnmarshalJSON ¶
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 ¶
FormatCheck : (generated from github.com/podhmo/strangejson/examples/depends01.User)
func (*User) UnmarshalJSON ¶
UnmarshalJSON : (generated from github.com/podhmo/strangejson/examples/depends01.User)
Click to show internal directories.
Click to hide internal directories.