Help us shape the future of Go! Take the 2026 Go Developer Survey

lawin

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: MIT Imports: 5 Imported by: 1

README

lawin

An http/net golang library abstraction

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractRespBody

func ExtractRespBody(resp *http.Response) string

ExtractRespBody : Extract response body and transform to map resp - http response

func HTTPGet

func HTTPGet(URL string, queryString map[string]interface{},
	headers map[string]string) *http.Response

HTTPGet : http GET Request URL - http URL queryString - query string params headers - request headers

func HTTPPost

func HTTPPost(URL string, payload map[string]interface{},
	headers map[string]string) *http.Response

HTTPPost : HTTP Post request URL - http URL headers - request headers

func TransformStrToMap

func TransformStrToMap(jsonstr string) map[string]interface{}

TransformStrToMap : To string to json map jsonstr - json String

Types

This section is empty.

Jump to

Keyboard shortcuts

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