···3131 return r
3232}
33333434-//Validate check if Cpf is in a valid format
3535-func (c Cpf) Validate() bool {
3434+//IsValid checks whether Cpf number is valid or not
3535+func (c Cpf) IsValid() bool {
3636 u := c.Unmask()
37373838- if len(u) != 11 {
3838+ if len(u) != 11 {
3939 return false
4040 }
4141···4949 ds[i] = c
5050 s[c] = member
5151 }
5252-5353- if len(m) == 1 {
5252+5353+ //If all digits are the same, the Cpf is not valid
5454+ if len(s) == 1 {
5455 return false
5556 }
5657