Documentation
¶
Index ¶
- type City
- type Country
- type Location
- func (location *Location) GetCountry() (*Country, error)
- func (location *Location) GetRegion() (*Region, error)
- func (location *Location) IsLocatingInCity(city *City) (bool, error)
- func (location *Location) IsLocatingInCountry(country *Country) (bool, error)
- func (location *Location) IsLocatingInRegion(region *Region) (bool, error)
- type Region
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Country ¶
type Country struct {
Name string `json:"name"`
Alpha_2 string `json:"alpha-2"`
Alpha_3 string `json:"alpha-3"`
CountryCode string `json:"country-code"`
ISO_3166_2 string `json:"iso31662"`
Region string `json:"region"`
SubRegion string `json:"sub-region"`
IntermediateRegion string `json:"intermediate-region"`
RegionCode string `json:"region-code"`
SubRegionCode string `json:"sub-region-code"`
IntermediateRegionCode string `json:"intermediate-region-code"`
CustomCode string `json:"custom-code"`
}
type Location ¶
type Location struct {
City City `json:"city"`
}
func (*Location) GetCountry ¶
func (*Location) IsLocatingInCity ¶
func (*Location) IsLocatingInCountry ¶
Click to show internal directories.
Click to hide internal directories.