location

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCityCode added in v1.2.0

func GetCityCode(country, city string) uint32

func GetRegionCode added in v1.2.0

func GetRegionCode(region string) []byte

Types

type City

type City struct {
	Name string `json:"name"`
	Flag string `json:"country_flag"`
}

func GetCity

func GetCity(code uint32) City

type Country

type Country struct {
	Alpha string `json:"alpha_3"`
	Code  string `json:"code"`
	Name  string `json:"name"`
	Flag  string `json:"flag"`
}

func GetCountry

func GetCountry(code string) Country

type Region

type Region struct {
	Name string `json:"name"`
	Flag string `json:"flag"`
}

func GetRegion

func GetRegion(code []byte) Region

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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