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).
Click to show internal directories.
Click to hide internal directories.