curltools

package
v0.0.59 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RobotCurlBase

func RobotCurlBase(method string, protocol string, host string, url string, header map[string]string, params interface{}) (interface{}, error)

Types

type CurlService

type CurlService struct {
}

func NewCurlService

func NewCurlService() CurlService

func (*CurlService) Curl

func (s *CurlService) Curl(method string, url string, header map[string]string, params interface{}) ([]byte, error)

func (*CurlService) Get

func (s *CurlService) Get(url string) []byte

func (*CurlService) PostWithFormData

func (s *CurlService) PostWithFormData(method, url string, header map[string]string, postData *map[string]string) ([]byte, error)

func (*CurlService) RobotCurl

func (s *CurlService) RobotCurl(method string, url string, header map[string]string, params map[string]interface{}) (interface{}, error)

RobotCurl 群机器人

Jump to

Keyboard shortcuts

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