package
Version:
v0.0.0-...-60298ba
Opens a new window with list of versions in this module.
Published: Nov 3, 2019
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type APIError struct {
ErrorCode int
ErrorMessage string
}
APIError is to record errors
type Item struct {
ID string `json:id`
Name string `json:"name"`
Price float64 `json:"price"`
Rating string `json:"rating"`
Summary string `json:"summary"`
Manufacturer string `json:"manufacturer"`
Sources Source `json:"source"`
}
Item is the structure of a general shopping item
Items is a list if items
NewItems Return list of Items
type Source struct {
Name string `json:"name"`
Author string `json:"author"`
Title string `json:"title"`
Content string `json:"content"`
URL string `json:"url"`
DatePublished string `json:"date"`
}
Source is the structure of provider of an item
Source Files
¶
Click to show internal directories.
Click to hide internal directories.