Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchAndParseHTML ¶
fetchAndParseHTML fetches and parses the HTML content of a given URL. It uses the provided URL to create a new HTTP request and retrieves the HTML content of the URL. It returns a goquery.Document and an error if any occurred.
func ShouldPrintPublished ¶
shouldPrintPublished checks if the published ad should be printed based on its time and the current time. It takes a Published struct and the current time as input and returns a boolean. It parses the time of the published ad and checks if it is after the current time. If the published ad is after the current time, it should be printed and the function returns true.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.