Documentation
¶
Overview ¶
Package chilerut validates, formats and compares Chilean RUT (Rol Único Tributario) numbers using the standard módulo 11 check-digit algorithm.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Format ¶
Format returns the canonical "body-dv" form of a RUT (e.g. "12667869-K"), dropping any separators, leading zeros and lowercasing.
func Valid ¶
Valid reports whether rut is a valid RUT by recomputing its módulo 11 check digit. Any common separator format is accepted.
func VerificationDigit ¶
VerificationDigit computes the expected módulo 11 check digit ("0"-"9" or "K") for the given RUT body.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.