resources

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const LIVE string = "live"

LIVE represents the live environment.

View Source
const SANDBOX string = "sandbox"

SANDBOX represents the sandbox environment.

View Source
const STAGING string = "staging"

STAGING represents the staging environment.

View Source
const TEST string = "test"

TEST represents the test environment.

Variables

This section is empty.

Functions

func CountriesList

func CountriesList() map[string]string

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

func FormatsList(countryCode string) map[string]interface{}

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

func StatesList(countryCode string) map[string]string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL