Skip to content

Instantly share code, notes, and snippets.

@raninho
Created January 22, 2019 14:25
Show Gist options
  • Save raninho/98ed43b8c9f459b3d2389f657ce43177 to your computer and use it in GitHub Desktop.
Save raninho/98ed43b8c9f459b3d2389f657ce43177 to your computer and use it in GitHub Desktop.
IsCPF
package main
import (
"fmt"
"github.com/Nhanderu/brdoc"
)
var (
cpfs = []string{
"01173329412",
"02545230309"}
)
func main() {
for _, cpf := range cpfs {
if brdoc.IsCPF(cpf) {
fmt.Println(cpf)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment