I\'m learning Go currently and I made this simple and crude inventory program just to tinker with structs and methods to understand how they work. In the driver file I try t
While the other answers are useful, I think in this case it is best just to make non-mutating functions not take a pointer:
func (i item) GetName() string{ return i.itemName } func (i item) GetAmount() int{ return i.amount }