https://github.com/nullne/libphonenumber
golang port of Google's libphonenumber
https://github.com/nullne/libphonenumber
Last synced: 5 months ago
JSON representation
golang port of Google's libphonenumber
- Host: GitHub
- URL: https://github.com/nullne/libphonenumber
- Owner: nullne
- License: mit
- Fork: true (ttacon/libphonenumber)
- Created: 2017-09-08T06:34:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-01T13:31:26.000Z (over 8 years ago)
- Last Synced: 2024-06-20T07:57:43.568Z (almost 2 years ago)
- Language: Go
- Size: 922 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
libphonenumber
==============
golang port of Google's libphonenumber
[](http://forthebadge.com)
[](https://travis-ci.org/ttacon/libphonenumber)
[](https://godoc.org/github.com/ttacon/libphonenumber)
Status
======
This library is fully stable and is used in production by several companies.
Examples
========
Super simple to use.
### To get a phone number
```go
num, err := libphonenumber.Parse("6502530000", "US")
```
### To format a number
```go
// num is a *libphonenumber.PhoneNumber
formattedNum := libphonenumber.Format(num, libphonenumber.NATIONAL)
```