module
Version:
v1.0.8
Opens a new window with list of versions in this module.
Published: Mar 31, 2023
License: MIT
Opens a new window with license information.
README
¶
weather
weather skd for tianqiapi.com v91
how to use
package main
import (
"fmt"
"github.com/tiantour/weather/sojson"
"github.com/tiantour/weather/tianqiapi"
)
func main() {
// use sojson
x, err := sojson.NewWeather().Fetch("101030100")
fmt.Println(x, err)
// use tianqiapi
tianqiapi.AppID = 0
tianqiapi.AppSecret = "your appsecret"
y, err := tianqiapi.NewWeather().Fetch("101030100")
fmt.Println(y, err)
}
Directories
¶
Click to show internal directories.
Click to hide internal directories.