Simple Golang HTTP library for CRUD operations
go get github.com/cetric32/GoHTTP
import "github.com/cetric32/GoHTTP"
goHttp := GoHTTP.NewGoHTTP()
result, statusCode, err := goHttp.Get("https://jsonplaceholder.typicode.com/posts/1")
result, statusCode, err := goHttp.Post("https://jsonplaceholder.typicode.com/posts", nil)
result, statusCode, err := goHttp.PostForm("https://jsonplaceholder.typicode.com/posts", map[string][]string{"title": {"foo"}, "body": {"bar"}, "userId": {"1"}})
result, statusCode, err := goHttp.Put("https://jsonplaceholder.typicode.com/posts/1", nil)
result, statusCode, err := goHttp.Patch("https://jsonplaceholder.typicode.com/posts/1", nil)
result, statusCode, err := goHttp.Delete("https://jsonplaceholder.typicode.com/posts/1")
goHttp.AddHeaders(map[string]string{"Content-Type": "application/json", "Authorization": "Bearer <token>"})
goHttp.SetProxy("http://proxy.example.com:8080")