cpf

package module
v0.0.0-...-4113d38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2015 License: MIT Imports: 7 Imported by: 3

README

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate() (cpfString string)

func GeneratePretty

func GeneratePretty() (cpf string)

func Valid

func Valid(digits string) (bool, error)

Valid validates the cpf and return a boolean and the error if any

Types

This section is empty.

Directories

Path Synopsis
cmd
cpf

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL