Created
January 22, 2019 14:25
-
-
Save raninho/98ed43b8c9f459b3d2389f657ce43177 to your computer and use it in GitHub Desktop.
IsCPF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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