Documentation
¶
Overview ¶
Package util
English:
util is a package that provides some useful functions.
Currently supported functions:
1. RequestGetJSONWithQueryParam
Chinese:
util 是一个提供一些有用函数的包。
目前支持的功能:
1. RequestGetJSONWithQueryParam
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestGetJSONWithQueryParam ¶
RequestGetJSONWithQueryParam
English:
RequestGetJSONWithQueryParam is a function that sends a GET request to the specified URL with the specified parameters and returns the result in JSON format.
url: The URL to send the request to.
param: The parameters to send with the request.
v: The variable to store the result.
Returns an error if the request fails.
Chinese:
RequestGetJSONWithQueryParam 是一个发送 GET 请求到指定 URL 的函数,带有指定的参数,并以 JSON 格式返回结果。
url: 发送请求的 URL。
param: 发送请求的参数。
v: 存储结果的变量。
如果请求失败,返回一个错误。
Types ¶
This section is empty.