Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscountRule ¶
type DiscountRule interface { // CalculateDiscount is responsible for making a discount calculation // following a specific rule CalculateDiscount() float32 }
DiscountRule represents a simple strategic interface to create n types of discount calculations
Click to show internal directories.
Click to hide internal directories.