https://github.com/alvarolm/rut
validates and generates 'Rol Único Tributario'
https://github.com/alvarolm/rut
Last synced: 28 days ago
JSON representation
validates and generates 'Rol Único Tributario'
- Host: GitHub
- URL: https://github.com/alvarolm/rut
- Owner: alvarolm
- License: mit
- Created: 2020-01-08T01:28:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-19T22:10:25.000Z (about 1 year ago)
- Last Synced: 2025-05-12T19:15:45.845Z (28 days ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rut
[](https://godoc.org/github.com/alvarolm/rut)
[](https://goreportcard.com/report/github.com/alvarolm/rut)[](https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=alvarofleivam%40gmail%2ecom&lc=AL&item_name=Donation%20%5b%20for%20a%20bus%20ticket%2c%20coffe%20anything%20you%20can%20I%27m%20happy%20thanks%20%21%20%3a%29%20%5d&item_number=donation&button_subtype=services¤cy_code=USD&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHosted)
validates and generates 'Rol Único Tributario'
```go
rut := Rut("11111111-1")if edv, err := rut.Validate(); err != nil {
....
}fmt.Println("plain", rut)
fmt.Println("decimal", rut.DecimalFormat())
generatedRut := GenerateRut(5000000, 23000000)
if _, err := generatedRut.Validate(); err != nil {
...
}
```