Documentation ¶
Index ¶
- Variables
- func FindCountryFromLatAndLong(lat float64, long float64) (code string, err error)
- func GetCountries(languageCode string) (*model.Response, error)
- func GetCountry(countryCode string, languageCode string) (*model.Response, error)
- func GetPhonenumbers(languageCode string) (*model.Response, error)
- func GetPhonenumbersForCountry(languageCode string, countryCode string) (*model.Response, error)
- func Init()
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ReadyChannel is a channel to know when the manager is ready ReadyChannel = make(chan int, 1) // ErrCountryDoesNotExist is a custom error ErrCountryDoesNotExist = errors.New("The country doesn't exist") // ErrLanguageDoesNotExist is a custom error ErrLanguageDoesNotExist = errors.New("The language doesn't exist") )
Functions ¶
func FindCountryFromLatAndLong ¶
FindCountryFromLatAndLong allow you to know the contry code of a given latitude and longitude. If doesn't find any, the error will be set
func GetCountries ¶
GetCountries will returns all countries founded
func GetCountry ¶
GetCountry will return a row for a specific country (used to know where you are)
func GetPhonenumbers ¶
GetPhonenumbers will returns every phonenumbers founded with specific translations from the languageCode
func GetPhonenumbersForCountry ¶
GetPhonenumbersForCountry will returns every phonenumbers founded for a country code with specific translations from the languageCode
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.