Documentation ¶
Overview ¶
Package taxes provides tax calculations based on the country and postal code.
This code is intended for demonstrating how module versions and imports work. Please don't use it in production code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForCountryPostalCode ¶
ForCountryPostalCode takes in two parameters, an ISO 3166-1 alpha-2 country code and a valid postal code for that country. It returns a decimal.Decimal with the sales tax rate. If the country code is invalid or the postal code cannot be processed, an error is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.