net

package
v0.0.0-...-b044761 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPRequest

func HTTPRequest(url, method string, data []byte, params *RequestParams, response interface{}) (err error)

HTTPRequest create a HTTP request

func QueryEncoder

func QueryEncoder(m map[string]string) string

QueryEncoder encodes a key value map to URL query string

Types

type RequestParams

type RequestParams struct {
	Timeout  int
	AuthUser string
	AuthPass string
}

RequestParams ...

Jump to

Keyboard shortcuts

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