product

package
v0.0.0-...-b59b4a3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

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 (p Product) GetMax_stock() int

func (Product) GetNumber

func (p Product) GetNumber() int

func (Product) GetProductID

func (p Product) GetProductID() string

Getters

func (Product) GetProductName

func (p Product) GetProductName() string

func (Product) GetReplenishmentRate

func (p Product) GetReplenishmentRate() int

func (*Product) SetMaxStock

func (p *Product) SetMaxStock(max_stock int)

func (*Product) SetNumber

func (p *Product) SetNumber(Quantity int)

func (*Product) SetProductID

func (p *Product) SetProductID(productID string)

Setters

func (*Product) SetProductName

func (p *Product) SetProductName(productName string)

func (*Product) SetReplenishmentRate

func (p *Product) SetReplenishmentRate(replenishment_rate int)

Jump to

Keyboard shortcuts

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