Adding pricing calculator
This commit is contained in:
16
pricingCalculator/main.go
Normal file
16
pricingCalculator/main.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"example.com/price-calculator/prices"
|
||||
)
|
||||
|
||||
func main() {
|
||||
taxRates := []float64(0, 0.7, 0.1, 0.15)
|
||||
|
||||
for _, taxRate := range taxRates {
|
||||
priceJob := prices.NewTaxIncludedPriceJob(taxRate)
|
||||
priceJob.Process()
|
||||
}
|
||||
|
||||
fmt.Println(result)
|
||||
}
|
||||
Reference in New Issue
Block a user