Documentation ¶
Index ¶
- func CheckNilClient(client qweather.Client) qweather.Client
- func Credential(key, publicId string) *qweather.Credential
- func Get(req *http.Request, client qweather.Client) ([]byte, error)
- func Request(url string, f func(r *http.Request)) (*http.Request, error)
- func UrlHelperBuilder(FreeEndPoint, StandardEndPoint string, ProEndPoint *string) func(isFreePlan qweather.Version, u ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNilClient ¶
func CheckNilClient(client qweather.Client) qweather.Client
func Credential ¶
func Credential(key, publicId string) *qweather.Credential
Credential 从环境变量中获取 key 与 public id 并生成 *qweather.Credential
参数:
key, public id 环境变量名
eg:
Credential("qweather_key","qweather_public_id")
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.