Documentation
¶
Index ¶
- func ParseCategory(text string) (category string, ok bool)
- func ParseContext(text string) (context *jsonquery.Node, err error)
- func ParseCurrency(text string) (currency string, ok bool)
- func ParseDescription(text string) (desc string, ok bool)
- func ParseFavorites(text string) (favorites int64, ok bool)
- func ParseImages(text string) (images []string, ok bool)
- func ParseListedDate(text string) (listedDate int64, ok bool)
- func ParsePrice(text string) (price float64, ok bool)
- func ParseReviews(text string) (reviews int64, ok bool)
- func ParseShopID(text string) (shopID int64, ok bool)
- func ParseStock(text string) (stock int64, ok bool)
- func ParseTitle(text string) (title string, ok bool)
- type Product
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCategory ¶ added in v1.0.2
func ParseContext ¶ added in v1.16.1
func ParseCurrency ¶ added in v1.0.2
func ParseDescription ¶ added in v1.0.2
func ParseFavorites ¶ added in v1.0.2
func ParseImages ¶ added in v1.0.2
func ParseListedDate ¶ added in v1.0.2
func ParsePrice ¶ added in v1.0.2
func ParseReviews ¶ added in v1.0.2
func ParseShopID ¶ added in v1.0.2
func ParseStock ¶ added in v1.0.2
func ParseTitle ¶ added in v1.0.2
Types ¶
type Product ¶
type Product struct {
Price float64 `json:"price"`
Currency string `json:"currency"`
Title string `json:"title"`
Category string `json:"category"`
Stock int64 `json:"stock"`
Favorites int64 `json:"favorites"`
ListedDate int64 `json:"listed_date"`
Images []string `json:"images"`
Description string `json:"description"`
Reviews int64 `json:"reviews"`
ShopID int64 `json:"shop_id"`
}
Click to show internal directories.
Click to hide internal directories.