country

package
v0.18.6 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ErrCountryCode = "country code error"
	ErrCountryName = "country name error"
)
View Source
const (
	CodeUnknown = ""
	NameUnknown = "Unknown"
)

Variables

This section is empty.

Functions

func MayBeCountryCode

func MayBeCountryCode(s string) bool

Types

type Country

type Country struct {
	// contains filtered or unexported fields
}

func New

func New(code string, name string) (c *Country, err error)

func (*Country) Code

func (c *Country) Code() string

func (*Country) Name

func (c *Country) Name() string

Jump to

Keyboard shortcuts

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