request

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

* @Author: lisheng * @Date: 2022-11-15 16:32:01 * @LastEditTime: 2023-01-06 11:20:29 * @LastEditors: lisheng * @Description: * @FilePath: /jf-go-kit/base/request/request.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GET

func GET(url string, headers, params map[string]string, resDataPtr interface{}) error

* * @description: GET方式的http请求 * @param {string} url 请求地址 * @param {map[string]string} headers 请求header头设置 * @param {*} params 请求地址栏后需要拼接参数操作 * @param {interface{}} resDataPtr 需返回绑定数据 * @return {*} 返回类型 "错误信息" * @author: liqiyuWorks

func GETStatusCode

func GETStatusCode(url string) int

func POST

func POST(url string, headers map[string]string, reqDataMap map[string]string, resDataPtr interface{}) error

*

  • @description: POST方式的http请求
  • @param {string} url 请求链接
  • @param {map[string]string} headers 请求header头设置
  • @param {map[string]string} reqDataMap 请求的data map
  • @param {interface{}} resDataPtr 需返回绑定数据
  • @return {*} 错误信息
  • @author: liqiyuWorks

Types

This section is empty.

Jump to

Keyboard shortcuts

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