Documentation ¶
Index ¶
- type AC
- type AL
- type AM
- type AP
- type BA
- type CE
- type DF
- type ES
- type GO
- type MA
- type MG
- type MS
- type MT
- type PA
- type PB
- type PE
- type PI
- type PR
- type RJ
- type RN
- type RO
- type RR
- type RS
- 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) 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 SC
- type SE
- type SP
- type TO
- type Validatable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) IsStartWith ¶
IsStartWith function
func (*Rules) SliceValues ¶
SliceValues function
Click to show internal directories.
Click to hide internal directories.