License: MIT

go-http-lib

Import and Usage

go get github.com/WalterPaes/go-http-lib

Create a New Request

request := New("http://yoururl.com", &http.Client{})

Add Header

request.AddHeader("foo", "bar")

Do POST request

request.Post("/path", map[string]string{"foo": "bar"})

Do GET request

request.Get("/path", map[string]string{"foo": "bar"})

Json Decode

request.Json()

Parse to Interface

request.Decode(map[string]string{})

🚀 Technologies

This project was developed with the following technologies:

Made by Walter Junior