/validator

A set of functions written in Go to validate Brazilian document numbers

Primary LanguageGo

Validator for Golang

A package with validation funcs written in golang.

Installation

Add the package to the desired file.

Usage

Functions:

Validator.IsValidEmail(email) returns a bool

Validator.IsValidCPF(cpf) returns a bool

Validator.IsValidCNPJ(cnpj) returns a bool

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Credits

Gabriel Gomes