Perform basic HTTP requests with GoRequest
developGoRequest provides a simplified interface for common HTTP methods. You can create a new request instance using gorequest.New() and chain method calls like Get, Post, Put, Delete, Head, or Patch. Use .End() to execute the request and receive the response, body, and errors.
request := gorequest.New()
resp, body, errs := request.Get("http://example.com/").End()
// Or in a single line:
resp, body, errs := gorequest.New().Get("http://example.com/").End()