An open API service indexing awesome lists of open source software.

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'

Awesome Lists containing this project

README

        

# rut

[![Godoc Reference](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/alvarolm/rut)
[![Go Report](https://img.shields.io/badge/go%20report-A%2B-brightgreen.svg)](https://goreportcard.com/report/github.com/alvarolm/rut)

[![donate](https://img.shields.io/badge/donate-a%20bus%20ticket%2C%20cup%20of%20coffe%2C%20anything%20you%20can%2C%20thanks!-orange.svg)](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&currency_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 {
...
}
```