util

package
v0.0.0-...-bd0de05 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpRequest

func HttpRequest(urlstr string, method string, reqBody string, token string) ([]byte, error)

不带授权get请求 method= "GET" || "POST"

func HttpRequestAuth

func HttpRequestAuth(url, method string, requestBody string, auth string) ([]byte, error)

带授权的http请求,支持传入方式 method= "GET" || "POST"

Types

This section is empty.

Jump to

Keyboard shortcuts

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