csvutils

package
v0.0.0-...-d3a3332 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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