Documentation
¶
Index ¶
Constants ¶
const Default = "USD"
const WantedAmount = -1
WantedAmount is the price sentinel for a wanted listing.
const WantedFilter = "wanted"
WantedFilter is the search-filter value that selects wanted listings.
const WantedLabel = "WANTED"
WantedLabel is the display text for WantedAmount.
Variables ¶
var Supported = []string{
"USD", "EUR", "GBP", "CAD", "AUD", "JPY", "CHF", "CNY", "INR", "MXN",
"BRL", "KRW", "NZD", "SEK", "NOK", "DKK", "PLN", "ZAR",
"HKD", "SGD", "TWD", "THB", "MYR", "IDR", "PHP", "VND",
"AED", "SAR", "ILS", "TRY", "CZK", "HUF", "RON",
"ARS", "CLP", "COP", "PEN",
"EGP", "NGN", "KES", "PKR", "BDT",
}
Supported lists ISO 4217 codes for the price currency dropdown.
Functions ¶
func DefaultFromPhone ¶
DefaultFromPhone infers a currency code from an E.164 phone number.
func DefaultFromRegion ¶
DefaultFromRegion maps an ISO 3166-1 alpha-2 region to a supported currency.
func IsSupported ¶
Types ¶
This section is empty.