This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Description
|
return prs, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/pulls", owner, repo), jsonHeader, bytes.NewReader(body), &prs) |
How does this work?
|
func (c *Client) getParsedResponse(method, path string, header http.Header, body io.Reader, obj interface{}) error { |
|
func (c *Client) getResponse(method, path string, header http.Header, body io.Reader) ([]byte, error) { |
|
func (c *Client) doRequest(method, path string, header http.Header, body io.Reader) (*http.Response, error) { |
You passed body as a JSON to a GET request and expect it will be converted to a query string?