Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var URLS = struct{ PEOPLE, ISS_NOW string }{
"http://api.open-notify.org/astros.json",
"http://api.open-notify.org/iss-now.json",
}
Functions ¶
This section is empty.
Types ¶
type ISSLocation ¶
type ISSLocation struct { Message string DateTime time.Time Location struct { Latitude float64 Longitude float64 } }
func GetISSLocation ¶
func GetISSLocation() (*ISSLocation, error)
Gets the current location of ISS (International Space Station)
type PeopleInSpace ¶
type PeopleInSpace struct { Number uint `json:"number"` Message string `json:"message"` People []struct { Name string `json:"name"` Craft string `json:"craft"` } `json:"people"` }
func GetPeopleInSpace ¶
func GetPeopleInSpace() (*PeopleInSpace, error)
Get the current number of people in space. It also returns the names and spacecraft those people are on.
Click to show internal directories.
Click to hide internal directories.