https://github.com/mvrilo/go-cpf
CPF validator and generator in Go
https://github.com/mvrilo/go-cpf
cpf go
Last synced: about 1 year ago
JSON representation
CPF validator and generator in Go
- Host: GitHub
- URL: https://github.com/mvrilo/go-cpf
- Owner: mvrilo
- License: mit
- Created: 2013-08-18T22:39:19.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T20:52:21.000Z (over 3 years ago)
- Last Synced: 2025-03-26T19:02:13.884Z (over 1 year ago)
- Topics: cpf, go
- Language: Go
- Homepage: http://godoc.org/github.com/mvrilo/go-cpf
- Size: 926 KB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-cpf
[](http://travis-ci.org/mvrilo/go-cpf)
[CPF](https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F%C3%ADsicas) validator and generator written in Go.
## Usage
#### Command-line example:
```bash
$ go get github.com/mvrilo/go-cpf/cmd/cpf
$ cpf
487.160.523-07
$ cpf 487.160.523-07
✔
```
#### API example:
```go
package main
import "github.com/mvrilo/go-cpf"
func main() {
println(cpf.GeneratePretty())
}
```
## License
See [LICENSE](https://github.com/mvrilo/go-cpf/blob/master/LICENSE)