Skip to content

vat is a Go client library for accessing the Open Service by European Commission

License

Notifications You must be signed in to change notification settings

miguelbemartin/vat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vat

vat is a Go client library for accessing the Open Service by European Commission

Go Report Card Go codecov MIT licensed GoDoc

Getting Started

Prerequisites

  • Go 1.13+

Installation

Run into the terminal the next command

go get github.com/miguelbemartin/vat

Usage

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)

}

Run the tests

go test . -v

Contributing

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

https://ec.europa.eu/taxation_customs/sites/taxation/files/resources/documents/taxation/vat/how_vat_works/rates/vat_rates_en.pdf

About

vat is a Go client library for accessing the Open Service by European Commission

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages