helpers

package
v0.0.0-...-dd796f5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParamsMerge

func ParamsMerge(sets ...map[string]string) map[string]string

Merges string:string sets params

func ParamsRender

func ParamsRender(params map[string]string) string

Renders params to query string

func Request

func Request(method string, url url.URL, headers map[string]string) ([]byte, error)

Makes HTTP request, handles errs and returns raw result

func RequestHTML

func RequestHTML(method string, url url.URL) (*goquery.Document, error)

Makes HTTP request and parses result as HTML

func RequestJSON

func RequestJSON(result interface{}, url url.URL) error

Makes HTTP request and parses result as JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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