BrandonRomano / wrecker

A golang request builder for JSON APIs
MIT License
24 stars 0 forks source link

Remove "With" from function signatures #18

Closed benpate closed 9 years ago

benpate commented 9 years ago

We can save a bunch of repeated typing by removing "With" from the beginning of most function calls. For example: WithParam(), WithBody(), WithHeader().

This should be a simple search/replace.

BrandonRomano commented 9 years ago

Hey Ben,

I think this probably should be the way to go.

I initially went with With because it made the request feel more like a sentence, but without With still feels good, and saves on typing.

We should also add a note in the README that this project is under early dev and should expect breaking changes.

benpate commented 9 years ago

Just posted a new branch for this. I'll make it a pull request once we have the WithBody() thing worked out.