vat is a Go client library for accessing the Open Service by European Commission
- Go 1.13+
Run into the terminal the next command
go get github.com/miguelbemartin/vat
package main
import (
"fmt"
"github.com/miguelbemartin/vat"
)
func main() {
client := vat.NewClient()
exist, err := client.Validate("ESXX")
if err != nil {
fmt.Println("Error: ", err.Error())
}
fmt.Println("The result is ", exist)
rate, err := client.GetRate("ES")
if err != nil {
fmt.Println("Error: ", err.Error())
}
fmt.Println("The result is ", rate)
}
go test . -v
- Miguel Ángel Martín - @miguelbemartin
This project is licensed under the MIT License - see the LICENSE.md file for details