Documentation
¶
Index ¶
Constants ¶
const LIVE string = "live"
LIVE represents the live environment.
const SANDBOX string = "sandbox"
SANDBOX represents the sandbox environment.
const STAGING string = "staging"
STAGING represents the staging environment.
const TEST string = "test"
TEST represents the test environment.
Variables ¶
This section is empty.
Functions ¶
func CountriesList ¶
Returns a map with the available countries and their corresponding two-letter country codes. The two-letter country codes are based on the ISO 3166-1 standard.
func FormatsList ¶
Returns a map with the available formats for the given countryCode.
The `countryCode` parameter representing the ISO code for the country to look up.
If the country does not exist or has no formats, it will return an empty map.
func New ¶
func New() error
Prevent implicit public contructor. If you try to create a new instance, it returns an error.
func StatesList ¶
Returns a map with the available states for the given countryCode. It uses the ISO 3166-2 standard for country subdivisions.
The `countryCode` parameter representing the ISO code for the country to look up.
If the country does not exist or has no states, it will return an empty map.
Types ¶
This section is empty.