fetch

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

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