Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateBarcodeFile ¶
GenerateBarcodeFile generates a barcode png photo based on the coupon ID and return its path
func ReadableCouponID ¶
ReadableCouponID puts a dash after every 4 chars of coupon ID for making it more readable
Types ¶
type Coupon ¶
type Coupon struct { ID string `json:"id"` // ID is the coupon's unique identifier Vendor string `json:"vendor"` // Vendor is the shopping Vendor the coupon refers to Value int `json:"value"` // Value is the amount of money available in the coupon Expiration int64 `json:"expiration"` // Expiration is the epoch timestamp in which the coupon will expire }
Coupon is the object representing a Cibus coupon
Click to show internal directories.
Click to hide internal directories.