net

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string, params map[string]string, headers map[string]string) ([]byte, error)

Get http get method

func Post

func Post(url string, body map[string]interface{}, params map[string]string, headers map[string]string) ([]byte, error)

Post http post method

Types

type Response

type Response struct {
	Result string "json"
	Error  error
}

func NewResponse

func NewResponse(result string, error error) *Response

func (Response) GetResult

func (s Response) GetResult()

func (*Response) SetResult

func (s *Response) SetResult(result string, error error)

Jump to

Keyboard shortcuts

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