22 lines
290 B
Markdown
22 lines
290 B
Markdown
|
# Validators
|
||
|
|
||
|
Package with multiple complex validation entities (only CPF now)
|
||
|
|
||
|
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))
|
||
|
}
|
||
|
}
|
||
|
|
||
|
```
|