util

package
v0.0.0-...-5ed6f2c Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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")

func Get

func Get(req *http.Request, client qweather.Client) ([]byte, error)

func Request

func Request(url string, f func(r *http.Request)) (*http.Request, error)

func UrlHelperBuilder

func UrlHelperBuilder(FreeEndPoint, StandardEndPoint string, ProEndPoint *string) func(isFreePlan qweather.Version, u ...string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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