Documentation ¶
Index ¶
Constants ¶
View Source
const ( URLDaydealDay = "https://www.daydeal.ch/" URLDaydealWeek = "https://www.daydeal.ch/deal-of-the-week" )
URLs of the various daydeal sources
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
App parses arguments and calls the other components accordingly.
type Daydeal ¶
Daydeal holds all information about the current deal and knows how to extract information from it.
func NewDaydeal ¶
NewDaydeal returns a new Daydeal instance with the given document.
func (Daydeal) NextDealIn ¶
NextDealIn returns the duration to the next deal.
func (Daydeal) Percentage ¶
Percentage displays how many items (in percent obviously) are left
func (Daydeal) PriceSource ¶
PriceSource displays the price source according to daydeal.ch: 1 Konkurrenzvergleich 2 Selbstvergleich BRACK.CH 3 Einführungspreis
type Printable ¶
type Printable interface { Title() string Subtitle() string NewPrice() string OldPrice() string PriceSource() string Percentage() string NextDeal() time.Time NextDealIn() time.Duration }
Printable interface defines all methods required to print a deal
Click to show internal directories.
Click to hide internal directories.