Skip to content

Commit 9b3c1df

Browse files
authored
Merge pull request #50 from ipinfo/umar/currency-docs
updated CountryCurrency README
2 parents 21dc12f + deb03eb commit 9b3c1df

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Check all the data we have for your IP address [here](https://ipinfo.io/what-is-
2121
- [Country Name](#country-name)
2222
- [European Union (EU) Country](#european-union-eu-country)
2323
- [Country Flag](#country-flag)
24+
- [Country Currency](#country-currency)
2425
- [Map IP Address](#map-ip-address)
2526
- [Summarize IP Address](#summarize-ip-address)
2627
- [Caching](#caching)
@@ -121,6 +122,17 @@ fmt.Println(info.CountryFlag.Unicode)
121122
// Output: "U+1F1F3 U+1F1FF"
122123
```
123124

125+
## Country Currency
126+
127+
Get country's currency code and it's symbol with `info.CountryCurrency.Code` and `info.CountryCurrency.Symbol` respectively.
128+
129+
```go
130+
fmt.Println(info.CountryCurrency.Code)
131+
// Output: USD
132+
fmt.Println(info.CountryCurrency.Symbol)
133+
// Output: $
134+
```
135+
124136
# Map IP Address
125137

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

0 commit comments

Comments
 (0)