Documentation
¶
Index ¶
- func Contains(list []string, value string) bool
- func ContainsIgnoreCase(list []string, value string) bool
- func EqualsIgnoreCase(text1 string, text2 string) bool
- func Filter(vs []string, f func(string) bool) []string
- func FilterNonEmpty(vs []string) []string
- func FormatLocaleId(value string) string
- func FormatUnderscore(value string) string
- func MoveFile(sourcePath, destPath string) error
- func ReadFile(path string) []byte
- func ReadUrl(url string) []byte
- func RemapCurrencyCodeToSupported(code string) string
- func UnsupportedCountryCodes() []string
- func WriteJson(target string, data interface{})
- type Carrier
- type CarrierService
- type Continent
- type Country
- type Currency
- type CurrencySymbols
- type Language
- type Locale
- type LocaleNumbers
- type LocalizedTranslation
- type PaymentMethod
- type PaymentMethodImage
- type PaymentMethodImages
- type Province
- type Region
- type Timezone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsIgnoreCase ¶
func EqualsIgnoreCase ¶
func FilterNonEmpty ¶
func FormatLocaleId ¶
func FormatUnderscore ¶
func MoveFile ¶
This method is executed for linux OS Reference for this method: https://gist.github.com/var23rav/23ae5d0d4d830aff886c3c970b8f6c6b
func UnsupportedCountryCodes ¶
func UnsupportedCountryCodes() []string
Types ¶
type Carrier ¶
type CarrierService ¶
type CarrierService struct {
Id string `json:"id"`
Name string `json:"name"`
Carrier Carrier `json:"carrier"`
}
func CarrierServices ¶
func CarrierServices() []CarrierService
type Continent ¶
type Continent struct {
Name string `json:"name"`
Code string `json:"code"`
Countries []string `json:"countries"`
}
func Continents ¶
func Continents() []Continent
type Country ¶
type Country struct {
Name string `json:"name"`
Iso_3166_2 string `json:"iso_3166_2"`
Iso_3166_3 string `json:"iso_3166_3"`
MeasurementSystem string `json:"measurement_system"`
DefaultCurrency string `json:"default_currency,omitempty"`
DefaultLanguage string `json:"default_language,omitempty"`
Languages []string `json:"languages"`
Timezones []string `json:"timezones"`
DefaultDeliveredDuty string `json:"default_delivered_duty,omitempty"`
}
type Currency ¶
type Currency struct {
Name string `json:"name"`
Iso_4217_3 string `json:"iso_4217_3"`
NumberDecimals int `json:"number_decimals"`
Symbols *CurrencySymbols `json:"symbols,omitempty"`
DefaultLocale string `json:"default_locale,omitempty"`
}
func Currencies ¶
func Currencies() []Currency
type CurrencySymbols ¶
type Language ¶
type Locale ¶
type Locale struct {
Id string `json:"id"`
Name string `json:"name"`
Country string `json:"country"`
Language string `json:"language,omitempty"`
Numbers LocaleNumbers `json:"numbers"`
}
type LocaleNumbers ¶
type LocalizedTranslation ¶
type PaymentMethod ¶
type PaymentMethod struct {
Id string `json:"id"`
Type string `json:"type"`
Name string `json:"name"`
Images PaymentMethodImages `json:"images"`
Regions []string `json:"regions"`
Capabilities []string `json:"capabilities"`
}
func PaymentMethods ¶
func PaymentMethods() []PaymentMethod
type PaymentMethodImage ¶
type PaymentMethodImages ¶
type PaymentMethodImages struct {
Small PaymentMethodImage `json:"small"`
Medium PaymentMethodImage `json:"medium"`
Large PaymentMethodImage `json:"large"`
}
type Province ¶
Click to show internal directories.
Click to hide internal directories.