validators/README.md

22 lines
297 B
Markdown
Raw Normal View History

2021-09-30 00:28:45 +00:00
# Validators
2021-09-30 01:16:31 +00:00
Package with multiple complex validation entities (only CPF & CNPJ now)
2021-09-30 00:28:45 +00:00
Usage:
```go
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))
}
}
```