/go-cpf

CPF validator and generator in Go

Primary LanguageGoMIT LicenseMIT

go-cpf

Build Status

CPF validator and generator written in Go.

Usage

Command-line example:

$ go get github.com/mvrilo/go-cpf/cmd/cpf
$ cpf
487.160.523-07
$ cpf 487.160.523-07
✔

API example:

package main

import "github.com/mvrilo/go-cpf"

func main() {
        println(cpf.GeneratePretty())
}

License

See LICENSE