countries

package
v0.0.0-...-b60358c Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unknown     = "Unknown"
	CodeUnknown = "XX"
)

Variables

View Source
var Bytes []byte
View Source
var (
	ErrCountryNotFound = errors.New("Country not found")
)

Functions

func GetMap

func GetMap() map[string]Country

func Init

func Init() (err error)

func Name

func Name(countryCode string) (countryName string, err error)

Types

type Country

type Country struct {
	Name string `json:"name"`
	Code string `json:"code"`
}

func GetList

func GetList() []Country

Jump to

Keyboard shortcuts

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