Documentation
¶
Index ¶
- func TypesAccepts() string
- type Acre
- type Alagoas
- type Amapa
- type Amazonas
- type Bahia
- type Ceara
- type DistroFederal
- type EspiritoSanto
- type Goias
- type Maranhao
- type MataGrosso
- type MatoGrossoSul
- type MinasGerais
- type Para
- type Paraiba
- type Parana
- type Pernambuco
- type Piaui
- type RioGrandeNorte
- type RioGrandeSul
- type RioJaneiro
- type Rondonia
- type Roraima
- type Rules
- func (r *Rules) Between(base string, inf, sup int) bool
- func (r *Rules) CalculateMod(total, divisor int) int
- func (r *Rules) CalculateTotal(insc string, baseSize int, weights []int) int
- func (r *Rules) GetBaseValue(insc string, quantity int) string
- func (r *Rules) GetDigit(total, divisor int) string
- func (r *Rules) GetWeight(start int, size int) []int
- func (r *Rules) IsCorrectSize(insc string, size int) bool
- func (r *Rules) IsStartBetween(insc string, start string, end string) bool
- func (r *Rules) IsStartWith(insc string, value string) bool
- func (r *Rules) IsUndefined(obj interface{}) bool
- func (r *Rules) SliceValues(insc string, quantity int) []string
- func (r *Rules) ValidateDefaultRule(insc string, baseSize int, divisor int) bool
- type SantaCatarina
- type SaoPaulo
- type Sergipe
- type Tocantins
- type UFEnum
- func (uf UFEnum) IsValid() (err error)
- func (uf UFEnum) MarshalJSON() ([]byte, error)
- func (uf UFEnum) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (uf *UFEnum) Scan(value interface{}) (err error)
- func (uf UFEnum) String() string
- func (uf *UFEnum) UnmarshalJSON(bytes []byte) error
- func (uf *UFEnum) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (uf UFEnum) Value() (driver.Value, error)
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TypesAccepts ¶
func TypesAccepts() string
Types ¶
type Amazonas ¶
type Amazonas struct { }
Amazonas struct - Amazonas Implements the Validator interface
type DistroFederal ¶
type DistroFederal struct { }
DistroFederal struct - Distrito Federal Implements the Validator interface
type EspiritoSanto ¶
type EspiritoSanto struct { }
EspiritoSanto struct - Espirito Santo Implements the Validator interface
type Maranhao ¶
type Maranhao struct { }
Maranhao struct - Maranhão Implements the Validator interface
type MataGrosso ¶
type MataGrosso struct { }
MataGrosso struct - Mato Grosso Implements the Validator interface
type MatoGrossoSul ¶
type MatoGrossoSul struct { }
MatoGrossoSul struct - Mato Grosso do Sul Implements the Validator interface
type MinasGerais ¶
type MinasGerais struct { }
MinasGerais struct - Minas Gerais Implements the Validator interface
type Pernambuco ¶
type Pernambuco struct { }
Pernambuco struct - Pernambuco Implements the Validator interface
type RioGrandeNorte ¶
type RioGrandeNorte struct { }
RioGrandeNorte struct - Rio Grande do Norte Implements the Validator interface
type RioGrandeSul ¶
type RioGrandeSul struct { }
RioGrandeSul struct - Rio Grande do Sul Implements the Validator interface
type RioJaneiro ¶
type RioJaneiro struct { }
RioJaneiro struct - Rio de Janeiro Implements the Validator interface
type Rondonia ¶
type Rondonia struct {
// contains filtered or unexported fields
}
Rondonia struct - Rondônia Implements the Validator interface
type Rules ¶
type Rules struct { }
Rules struct - define rules for validator
func (*Rules) CalculateMod ¶
CalculateMod function
func (*Rules) CalculateTotal ¶
CalculateTotal function
func (*Rules) GetBaseValue ¶
GetBaseValue function
func (*Rules) IsCorrectSize ¶
IsCorrectSize function
func (*Rules) IsStartBetween ¶
IsStartBetween function
func (*Rules) IsStartWith ¶
IsStartWith function
func (*Rules) SliceValues ¶
SliceValues function
type SantaCatarina ¶
type SantaCatarina struct { }
SantaCatarina struct - Santa Catarina Implements the Validator interface
type SaoPaulo ¶
type SaoPaulo struct { }
SaoPaulo struct - São Paulo Implements the Validator interface
type Tocantins ¶
type Tocantins struct { }
Tocantins struct - Tocantins Implements the Validator interface
type UFEnum ¶
type UFEnum int
const ( Undefined UFEnum = -1 AC UFEnum = 12 // AC: Acre AL UFEnum = 27 // AL: Alagoas AM UFEnum = 13 // AM: Amazonas AP UFEnum = 16 // AP: Amapá BA UFEnum = 29 // BA: Bahia CE UFEnum = 23 // CE: Ceará DF UFEnum = 53 // DF: Distrito Federal ES UFEnum = 32 // ES: Espirito Santo GO UFEnum = 52 // GO: Goias MA UFEnum = 21 // MA: Maranhão MG UFEnum = 31 // MG: Minas Gerais MS UFEnum = 50 // MS: Mato Grosso do Sul MT UFEnum = 51 // MT: Mato Grosso PA UFEnum = 15 // PA: Pará PB UFEnum = 25 // PB: Paraíba PE UFEnum = 26 // PE: Pernambuco PI UFEnum = 22 // PI: Piauí PR UFEnum = 41 // PR: Paraná RJ UFEnum = 33 // RJ: Rio de Janeiro RN UFEnum = 24 // RN: Rio Grande do Norte RO UFEnum = 11 // RO: Rondônia RR UFEnum = 14 // RR: Roraima RS UFEnum = 43 // RS: Rio Grande do Sul SC UFEnum = 42 // SC: Santa Catarina SE UFEnum = 28 // SE: Sergipe SP UFEnum = 35 // SP: São Paulo TO UFEnum = 17 // TO: Tocantins )