Go to file
Paulo Simão ca32d00e35 Corrigido calculo DV 2021-09-30 17:18:47 -03:00
cnpj cnpj on the way 2021-09-29 22:16:31 -03:00
cpf Corrigido calculo DV 2021-09-30 17:18:47 -03:00
.gitignore 1st ver 2021-09-29 21:28:45 -03:00
README.md cnpj on the way 2021-09-29 22:16:31 -03:00
go.mod 1st ver 2021-09-29 21:28:45 -03:00

README.md

Validators

Package with multiple complex validation entities (only CPF & CNPJ now)

Usage:

package main

import (
	"go.digitalcircle.com.br/open/validators/cpf"
	"log"
)

func main() {
	acpf := "401.852.780-27"
	if cpf.Check(acpf) {
		log.Printf("CPF OK: %s", cpf.Format(acpf))
	}
}