countries

package
v0.0.0-...-3b7374a Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 2 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 All

func All() map[string]string

func Name

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

Types

type Country

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

Jump to

Keyboard shortcuts

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