1 //go:generate go run datagen/region/genreg.go
5 // IsValidRegionCode returns true if s is a valid ISO1366-1_alpa-2 region code.
6 func IsValidRegionCode(s string) bool {
7 _, err := RegionCodeInfo(s)
14 // RegionName returns the English name of the ISO1366-1_alpa-2 region code s.
15 func RegionName(s string) (string, error) {
16 name, err := RegionCodeInfo(s)