Documentation ¶
Index ¶
- Variables
- func DigitHandler(ctx *gin.Context)
- func GetCaptcha() (code string, captcha string, err error)
- func GetReverseSequence(length int) (s []int)
- func SIIActivityHandler(ctx *gin.Context)
- func VDToString(vd int) string
- func ValidateHandler(ctx *gin.Context)
- type EconomicActivity
- type RUT
- type SIIDetail
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoCaptchaCode = errors.New("unexpected response: no captcha code") ErrInvalidCaptchaCode = errors.New("unexpected response: captcha code is not a string") ErrTooShortCaptchaCode = errors.New("unexpected response: captcha code is too short") )
View Source
var ErrInvalidRUT = errors.New("invalid rut")
Functions ¶
func DigitHandler ¶
func GetCaptcha ¶
func GetReverseSequence ¶
func SIIActivityHandler ¶
func VDToString ¶
func ValidateHandler ¶
Types ¶
type EconomicActivity ¶
type RUT ¶
type RUT []int
func (RUT) CalculateVD ¶
func (RUT) GetVDString ¶
func (RUT) PrettyString ¶
type SIIDetail ¶
type SIIDetail struct { Name string Activities []EconomicActivity }
func GetSIIDetails ¶
Click to show internal directories.
Click to hide internal directories.