Skip to content

Commit

Permalink
Merge pull request #50 from ipinfo/umar/currency-docs
Browse files Browse the repository at this point in the history
updated CountryCurrency README
  • Loading branch information
UmanShahzad authored Nov 5, 2022
2 parents 21dc12f + deb03eb commit 9b3c1df
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Check all the data we have for your IP address [here](https://ipinfo.io/what-is-
- [Country Name](#country-name)
- [European Union (EU) Country](#european-union-eu-country)
- [Country Flag](#country-flag)
- [Country Currency](#country-currency)
- [Map IP Address](#map-ip-address)
- [Summarize IP Address](#summarize-ip-address)
- [Caching](#caching)
Expand Down Expand Up @@ -121,6 +122,17 @@ fmt.Println(info.CountryFlag.Unicode)
// Output: "U+1F1F3 U+1F1FF"
```

## Country Currency

Get country's currency code and it's symbol with `info.CountryCurrency.Code` and `info.CountryCurrency.Symbol` respectively.

```go
fmt.Println(info.CountryCurrency.Code)
// Output: USD
fmt.Println(info.CountryCurrency.Symbol)
// Output: $
```

# Map IP Address

You can map upto 500,000 IP address all at once using the `GetIPMap` command. You can input:
Expand Down

0 comments on commit 9b3c1df

Please sign in to comment.