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

Deprecate CurrentByZip, add CurrentByZipcode #94

Merged
merged 1 commit into from
Sep 14, 2021
Merged

Deprecate CurrentByZip, add CurrentByZipcode #94

merged 1 commit into from
Sep 14, 2021

Conversation

donatj
Copy link
Contributor

@donatj donatj commented Sep 13, 2021

Zip codes in the USA can start with 0 - re: #88

In order to avoid making breaking changes, this

  1. Adds a CurrentByZipcode that uses a string for zip
  2. Changes CurrentByZip to use %05d to prefix zip int's with 0, such that 9123 gets prefixed with a 0 for the api and spits out 09123
  3. Adds a deprecation notice Deprecated: Use CurrentByZipcode instead

current.go Outdated Show resolved Hide resolved
@briandowns
Copy link
Owner

Aside from the one comment, this looks great and am happy to get it merged.

@donatj
Copy link
Contributor Author

donatj commented Sep 13, 2021

@briandowns I have updated the commit!

Copy link
Owner

@briandowns briandowns left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@briandowns briandowns merged commit 02925b2 into briandowns:master Sep 14, 2021
@donatj donatj deleted the fixZipcode branch September 14, 2021 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants