xlsxparser

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MIT Imports: 4 Imported by: 0

README

xlsxparser

Parser for business software Excel output

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser added in v0.0.3

func NewParser(fileName string) (Parser, error)

func (*Parser) ParseFile added in v0.0.2

func (p *Parser) ParseFile() (ProductTypes, bool)

type ProductRow added in v0.0.4

type ProductRow struct {
	ProductName string  `xlsx:"0"`
	Category    string  `xlsx:"1"`
	Price       float64 `xlsx:"2"`
	StockLevel  int     `xlsx:"3"`
}

type ProductSheet added in v0.0.5

type ProductSheet struct {
	ProductRows []ProductRow
	Errors      []error
}

type ProductTypes added in v0.0.5

type ProductTypes map[string]ProductSheet

Jump to

Keyboard shortcuts

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