An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# go-cpf
[![Build Status](https://secure.travis-ci.org/mvrilo/go-cpf.png)](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)