Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the code base more Go idiomatic #10

Merged
merged 7 commits into from
Feb 9, 2017
Merged

Make the code base more Go idiomatic #10

merged 7 commits into from
Feb 9, 2017

Conversation

ifraixedes
Copy link
Contributor

@ifraixedes ifraixedes commented Jan 31, 2017

I made several changes in the code base to have it more Go idiomatic.

Be aware that they introduce breaking changes, because of the:

  • const used to represent the HTTP methods
  • Changing the type for URL parameters from map[string]string to url.Values

Because of the changes, this PR should close #8 because the issue isn't currently about the feature expressed in the title is regarding a bug which should be fixed by PR #9 which is waiting for a review however this PR should close without the need of being merged.

Ivan Fraixedes added 5 commits January 31, 2017 11:07
Rename the snake case variables to camel case to follow the Go convention and
have more idiomatic Go source code
Remove the constants used to define the HTTP methods and use the ones
defined in the standard package net/http.
Rename some variables to have a more contextualized name about the
value which they hold
Don't expose GetFuncName because it's a internal helper function
Use the type Values exposed by the standard package net/url for URL
parameters than using the generic type map[string]string.

Delete unused function which was left out of previous refactor
@ifraixedes ifraixedes requested a review from xlr-8 January 31, 2017 12:11
@coveralls
Copy link

coveralls commented Jan 31, 2017

Coverage Status

Coverage decreased (-0.6%) to 92.208% when pulling 778a72e on if-idiomatize into 22189e2 on develop.

@coveralls
Copy link

coveralls commented Jan 31, 2017

Coverage Status

Coverage decreased (-0.6%) to 92.208% when pulling f684743 on if-idiomatize into 22189e2 on develop.

Ivan Fraixedes added 2 commits January 31, 2017 12:35
Rename Auth0 constructor function following Go naming conventions
Adapt README to the new refactoring, idiomatize code examples and fix
typos
@coveralls
Copy link

coveralls commented Jan 31, 2017

Coverage Status

Coverage decreased (-0.6%) to 92.208% when pulling c2a60a4 on if-idiomatize into 22189e2 on develop.

Copy link
Contributor

@xlr-8 xlr-8 left a comment

Choose a reason for hiding this comment

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

Changes look good to me

@ifraixedes ifraixedes merged commit 40877fd into develop Feb 9, 2017
@ifraixedes ifraixedes deleted the if-idiomatize branch February 9, 2017 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants