product

package
v1.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCategory added in v1.0.2

func ParseCategory(text string) (category string, ok bool)

func ParseContext added in v1.16.1

func ParseContext(text string) (context *jsonquery.Node, err error)

func ParseCurrency added in v1.0.2

func ParseCurrency(text string) (currency string, ok bool)

func ParseDescription added in v1.0.2

func ParseDescription(text string) (desc string, ok bool)

func ParseFavorites added in v1.0.2

func ParseFavorites(text string) (favorites int64, ok bool)

func ParseImages added in v1.0.2

func ParseImages(text string) (images []string, ok bool)

func ParseListedDate added in v1.0.2

func ParseListedDate(text string) (listedDate int64, ok bool)

func ParsePrice added in v1.0.2

func ParsePrice(text string) (price float64, ok bool)

func ParseReviews added in v1.0.2

func ParseReviews(text string) (reviews int64, ok bool)

func ParseShopID added in v1.0.2

func ParseShopID(text string) (shopID int64, ok bool)

func ParseStock added in v1.0.2

func ParseStock(text string) (stock int64, ok bool)

func ParseTitle added in v1.0.2

func ParseTitle(text string) (title string, ok bool)

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址