phonexgen

command
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Command phonexgen generates countries/generated.go from Google's libphonenumber PhoneNumberMetadata.xml.

Usage:

go run ./cmd/phonexgen \
    -xml internal/metadata/PhoneNumberMetadata.xml \
    -regions internal/metadata/metadata.json \
    -out countries/generated.go

The XML is the upstream file, vendored verbatim. The JSON supplies the region details libphonenumber does not carry (ISO-3166 alpha-3 code, English country name, IANA time zones).

Jump to

Keyboard shortcuts

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