Skip to content

Commit

Permalink
Updated documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltns35 committed Oct 24, 2021
1 parent 0cd1dd1 commit ef1ecc2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ go get -u github.com/ltns35/go-vat
## :dart: Features

- [x] Check the validity of VAT numbers.
- [ ] Display with format.
- [ ] Retrieve the list of available taxes for each country.
- [x] Extendable with custom countries/rules
- [x] Offline

Expand All @@ -35,16 +33,16 @@ go get -u github.com/ltns35/go-vat
```go

// Check against all supported countries validators.
vatResult, err := vat.CheckVAT("ADE000000E")
vatResult, err := vat.Validate("ADE000000E")
if err != nil {
// Handle error
}

// Check ONLY against Andorra validator.
countries := []countries.Calculer{
andorra.VAT,
countries.Andorra,
}
vatResult, err = vat.CheckVAT("ADE000000E", countries...)
vatResult, err = vat.Validate("ADE000000E", countries...)

// output: vatResult
//
Expand Down

0 comments on commit ef1ecc2

Please sign in to comment.