Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoffeeBean ¶
type CoffeeBean struct { Name string `csv:"name"` Roast string `csv:"roast"` Price float64 `csv:"price"` Quantity int `csv:"quantity"` // quantity is measures in Kilograms }
func LoadCSVForBeans ¶
func LoadCSVForBeans() ([]*CoffeeBean, error)
LoadCSVForBeans loads a CSV file into a slice of CoffeeBeans
Click to show internal directories.
Click to hide internal directories.