Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToJSON ¶
ConvertToJSON converts a given droplist to JSON Returns []byte
func GetLatestDroplistLink ¶
func GetLatestDroplistLink() string
GetLatestDroplistLink returns the latest droplist link on SupremeCommunity
func SaveAsJSON ¶
SaveAsJSON saves a given Droplist item to a given path as JSON Returns error
func SendDroplist ¶
SendDroplist sends the droplist to a provided webhook
Types ¶
type DropItem ¶
type DropItem struct { Name string `json:"name"` Image string `json:"image"` Description string `json:"description,omitempty"` Category string `json:"category,omitempty"` Price Price `json:"price,omitempty"` Votes Votes `json:"votes"` Link string `json:"link,omitempty"` }
DropItem is a struct for an item of the droplist
type Droplist ¶
type Droplist []DropItem
Droplist is an array of DropItem's
func ScrapeDroplist ¶
ScrapeDroplist scrapes the droplsit from the link provided
Click to show internal directories.
Click to hide internal directories.