Documentation ¶ Index ¶ type Moon type Planet Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Moon ¶ type Moon struct { Name string `json:"name" validate:"nonzero"` } type Planet ¶ type Planet struct { Id string `json:"id"` Name string `json:"name,omitempty" validate:"nonzero"` HoursInDay int `json:"hoursInDay,omitempty" validate:"min=1,max=999999"` Moons []Moon `json:"moons,omitempty"` } Source Files ¶ View all Source files moon.go planet.go Click to show internal directories. Click to hide internal directories.