Documentation ¶ Index ¶ func GetLocation(city string) (lat float64, lon float64) func GetWeather(city string) (name, description string, temp string, humidity int64) type Location type Main type Pkg func GetAllPkgInfos(keyWord string) []Pkg func GetFirstPkgInfo(keyWord string) Pkg type Weather Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetLocation ¶ func GetLocation(city string) (lat float64, lon float64) GetLocation get city's lat and lon func GetWeather ¶ func GetWeather(city string) (name, description string, temp string, humidity int64) Types ¶ type Location ¶ type Location struct { Name string Lat float64 Lon float64 Country string State string } type Main ¶ type Main struct { Temperature float64 Humidity int64 } type Pkg ¶ type Pkg struct { ShortName string FullName string Imported string Synopsis string } func GetAllPkgInfos ¶ func GetAllPkgInfos(keyWord string) []Pkg func GetFirstPkgInfo ¶ func GetFirstPkgInfo(keyWord string) Pkg type Weather ¶ type Weather struct { Description string } Source Files ¶ View all Source files pkg.go weather.go Click to show internal directories. Click to hide internal directories.