{"action":"created","issue":{"url":"https://api.github.com/repos/BrandonRomano/wrecker/issues/26","labels_url":"https://api.github.com/repos/BrandonRomano/wrecker/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/BrandonRomano/wrecker/issues/26/comments","events_url":"https://api.github.com/repos/BrandonRomano/wrecker/issues/26/events","html_url":"https://github.com/BrandonRomano/wrecker/issues/26","id":92682977,"number":26,"title":"Add convenience functions","user":{"login":"benpate","id":4381040,"avatar_url":"https://avatars.githubusercontent.com/u/4381040?v=3","gravatar_id":"","url":"https://api.github.com/users/benpate","html_url":"https://github.com/benpate","followers_url":"https://api.github.com/users/benpate/followers","following_url":"https://api.github.com/users/benpate/following{/other_user}","gists_url":"https://api.github.com/users/benpate/gists{/gist_id}","starred_url":"https://api.github.com/users/benpate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benpate/subscriptions","organizations_url":"https://api.github.com/users/benpate/orgs","repos_url":"https://api.github.com/users/benpate/repos","events_url":"https://api.github.com/users/benpate/events{/privacy}","received_events_url":"https://api.github.com/users/benpate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-02T16:48:33Z","updated_at":"2015-07-02T22:27:00Z","closed_at":null,"body":"How do you feel about some convenience functions like:\r\n\r\n```go\r\nr1 := wrecker.Get(\"\")\r\nr2 := wrecker.Post(\"\")\r\n// etc\r\n```\r\nThey would create a new wrecker instance and initalize a Get request all in one step.\r\n"},"comment":{"url":"https://api.github.com/repos/BrandonRomano/wrecker/issues/comments/118184431","html_url":"https://github.com/BrandonRomano/wrecker/issues/26#issuecomment-118184431","issue_url":"https://api.github.com/repos/BrandonRomano/wrecker/issues/26","id":118184431,"user":{"login":"benpate","id":4381040,"avatar_url":"https://avatars.githubusercontent.com/u/4381040?v=3","gravatar_id":"","url":"https://api.github.com/users/benpate","html_url":"https://github.com/benpate","followers_url":"https://api.github.com/users/benpate/followers","following_url":"https://api.github.com/users/benpate/following{/other_user}","gists_url":"https://api.github.com/users/benpate/gists{/gist_id}","starred_url":"https://api.github.com/users/benpate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benpate/subscriptions","organizations_url":"https://api.github.com/users/benpate/orgs","repos_url":"https://api.github.com/users/benpate/repos","events_url":"https://api.github.com/users/benpate/events{/privacy}","received_events_url":"https://api.github.com/users/benpate/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T22:27:00Z","updated_at":"2015-07-02T22:27:00Z","body":"No worries.  I agree that it could cause a little confusion.  I thought I’d throw that out there and see if the shortcut made sense to you.  I’ll remove the pull request. :)\n\n—\nBen\n\n> On Jul 2, 2015, at 3:11 PM, Brandon Romano <notifications@github.com> wrote:\n> \n> I actually don't necessarily agree with this issue. I don't really think that it's hard at all to create a Wrecker struct -- and it really only has to be done once.\n> \n> While yes, this done provide some convenience, but it also creates some ambiguity and bulks up the interface some more by providing more than one way to use the library.\n> \n> Let's look at this scenario.\n> \n> wrecker := &wrecker.Wrecker{\n>     BaseURL: \"https://www.google.com\",\n>     HttpClient: &http.Client{\n>         Timeout: 10 * time.Second,\n>     },\n> }\n> \n> wrecker.Get(\"/\")   // Same syntax as the proposed new function, but actually calls on the struct\n> So while it's really bad practice to name variables the same name as their packages, we run into this situation where it may actually not be entirely sure what will get called without understanding the language.\n> \n> So that one situation isn't the main reason why I'm against this, but it's more of me disagreeing with allowing multiple ways to interact with this library. I would prefer to have a single standardized way of using the library + forcing the users to create a Wrecker instance.\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/BrandonRomano/wrecker/issues/26#issuecomment-118169670>.\n> \n\n"}}