util

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 1 Imported by: 0

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

func RequestGetJSONWithQueryParam(url string, param req.Param, v interface{}) error

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.

Jump to

Keyboard shortcuts

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