Library to validate GCP regions.
This project is not officially supported or endorsed by Google in any way.
import(
"fmt"
regions "github.com/ohkinozomu/gcp-regions"
)
func main() {
// true
fmt.Println(regions.IsValid("us-central1"))
// false
fmt.Println(regions.IsValid("us-central1000"))
}
Apache-2.0