Documentation
¶
Index ¶
- type Product
- func (p Product) GetMax_stock() int
- func (p Product) GetNumber() int
- func (p Product) GetProductID() string
- func (p Product) GetProductName() string
- func (p Product) GetReplenishmentRate() int
- func (p *Product) SetMaxStock(max_stock int)
- func (p *Product) SetNumber(Quantity int)
- func (p *Product) SetProductID(productID string)
- func (p *Product) SetProductName(productName string)
- func (p *Product) SetReplenishmentRate(replenishment_rate int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Product ¶
type Product struct {
// contains filtered or unexported fields
}
func NewProduct ¶
func NewProduct(productID string, productName string, quantity int, replenishmentRate int, max_stock int) *Product
Initialize with Values
func (Product) GetMax_stock ¶
func (Product) GetProductName ¶
func (Product) GetReplenishmentRate ¶
func (*Product) SetMaxStock ¶
func (*Product) SetProductName ¶
func (*Product) SetReplenishmentRate ¶
Click to show internal directories.
Click to hide internal directories.