Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Conversation

@Stebalien
Copy link
Member

An extension/replacement of #98 that allows specifying options. The last commit in this PR replaces uses of newRequest with the new builder (removing a bunch of code).

@ghost ghost assigned Stebalien Jul 16, 2018
@ghost ghost added the status/in-progress In progress label Jul 16, 2018
@Stebalien Stebalien requested a review from magik6k July 16, 2018 15:39
data := new(bytes.Buffer)
err := json.NewEncoder(data).Encode(obj)
var data bytes.Buffer
err := json.NewEncoder(&data).Encode(obj)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small cleanup

}()

return nil
defer resp.Close()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct error handling

Copy link
Member

@magik6k magik6k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Niiice

@Stebalien Stebalien merged commit 678a362 into master Jul 16, 2018
@ghost ghost removed the status/in-progress In progress label Jul 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants