curl

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Curl

func Curl(method, url string, query interface{}, headers map[string]string) ([]byte, error)

Curl 发送http请求 @Description: 发送http请求 @param method 请求方法 @param url @param query 请求参数 支持(string,map[string]string) @param headers 请求头 @return []byte @return error

func UploadImage

func UploadImage(stream, url, fieldName, mimeType string)

UploadImage 上传图片 @Description: 上传图片 只支持jpg,png,gif,svg格式 @param stream 图片流 @param url 上传地址 @param fieldName 上传图片表单字段名 @param mimeType 上传图片mine类型

Types

This section is empty.

Jump to

Keyboard shortcuts

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