restcli

package
v0.0.0-...-e40dd39 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(cli *resty.Client, url string, params *Params, result ...interface{}) (*resty.Response, error)

func Get

func Get(cli *resty.Client, url string, params *Params, result ...interface{}) (*resty.Response, error)

func Patch

func Patch(cli *resty.Client, url string, params *Params, result ...interface{}) (*resty.Response, error)

func Post

func Post(cli *resty.Client, url string, params *Params, result ...interface{}) (*resty.Response, error)

func Put

func Put(cli *resty.Client, url string, params *Params, result ...interface{}) (*resty.Response, error)

Types

type Params

type Params struct {
	Header  map[string]string
	Queries map[string]string
	Body    interface{}

	Formdata map[string]string
}

Jump to

Keyboard shortcuts

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