Discover Packages
code.soquee.net/paddle
product
package
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Apr 2, 2020
License: BSD-2-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package product provides APIs related to products.
Client performs API operations.
List requests a list of proucts available on your account and returns an
iterator that decodes them from the response body.
If an error is returned, it is decoded and returned immediately.
type Iter struct {
Total int
Count int
}
Iter provides a mechanism for lazily decoding and iterating over a list of
products.
Decode returns the next product.
Next returns true if there are more products to decode.
type Product struct {
ID uint64 `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
BasePrice float64 `json:"base_price"`
SalePrice *int `json:"sale_price"`
Screenshots []string `json:"screenshots"`
Icon string `json:"icon"`
}
Product contains data from a single product.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.