package
module
Version:
v0.0.0-...-4113d38
Opens a new window with list of versions in this module.
Published: Jan 9, 2015
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
README
¶
go-cpf
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
Documentation
¶
func Generate() (cpfString string)
func GeneratePretty() (cpf string)
Valid validates the cpf and return a boolean and the error if any
Source Files
¶
Directories
¶
cmd
|
|
|
|
Click to show internal directories.
Click to hide internal directories.