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

List all countries #15

Closed
nd2s opened this issue Sep 25, 2017 · 2 comments
Closed

List all countries #15

nd2s opened this issue Sep 25, 2017 · 2 comments

Comments

@nd2s
Copy link

nd2s commented Sep 25, 2017

Isn't there a way of getting a list of all countries?

@pariz
Copy link
Owner

pariz commented Oct 19, 2017

Hi, @nd2s.
There is.

query := gountries.New()

query.Countries // is a map[string]Country{}

However, i think i should add this as a struct method on Query because it feels it makes more sense.
Something along the lines of query.FindAllCountries() which returns the same map[string]Country{}

I'll tag a new version this fix soon

pariz added a commit that referenced this issue Oct 19, 2017
Fixed the math tests. Added query.FindAllCountries() as requested in #15
@nd2s
Copy link
Author

nd2s commented Oct 19, 2017

Thanks!

@pariz pariz closed this as completed Dec 8, 2017
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

No branches or pull requests

2 participants