package
Version:
v0.0.0-...-83efb8c
Opens a new window with list of versions in this module.
Published: Nov 9, 2024
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 Book struct {
Isbn string `json:"isbn"`
Reviews []*Review `json:"reviews,omitempty"`
SimilarBooks []*Book `json:"similarBooks"`
RelatedReviews []*Review `json:"relatedReviews"`
}
type Car struct {
ID string `json:"id"`
Price *string `json:"price,omitempty"`
RetailPrice *string `json:"retailPrice,omitempty"`
}
type Error struct {
Code *int `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
}
func (Error) IsMetadataOrError()
type Furniture struct {
Upc string `json:"upc"`
Reviews []*Review `json:"reviews,omitempty"`
}
type KeyValue struct {
Key string `json:"key"`
Value string `json:"value"`
}
type MetadataOrError interface {
IsMetadataOrError()
}
type Product interface {
IsProduct()
GetReviews() []*Review
}
type ReviewProduct struct {
Upc string `json:"upc"`
Body string `json:"body"`
Stars *int `json:"stars,omitempty"`
}
type UpdateReviewInput struct {
ID string `json:"id"`
Body *string `json:"body,omitempty"`
}
type User struct {
ID string `json:"id"`
Username *string `json:"username,omitempty"`
Reviews []*Review `json:"reviews,omitempty"`
NumberOfReviews int `json:"numberOfReviews"`
Metadata []*UserMetadata `json:"metadata,omitempty"`
GoodAddress *bool `json:"goodAddress,omitempty"`
}
type UserMetadata struct {
Address *string `json:"address,omitempty"`
}
type Van struct {
ID string `json:"id"`
Price *string `json:"price,omitempty"`
RetailPrice *string `json:"retailPrice,omitempty"`
}
type Vehicle interface {
IsVehicle()
GetRetailPrice() *string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.