bbva

package module
v0.0.0-...-97f3b40 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

README

go-bbva

Executables

bbva-to-json

Usage:

bbva-to-json exported.xlsx

That command prints one JSON object per line, for example:

{"Concepto":"Example.","Disponible":"0.0","Divisa":"EUR","F.Valor":"12/07/2024","Fecha":"12/07/2024","Importe":"0","Movimiento":"Example.","Observaciones":"Example."}

Keys and values are not parsed, this only converts an .xlsx file to a simplified JSON that can be used for further processing.

License

MPL 2.0.

Documentation

Index

Constants

View Source
const (
	SheetName = "Informe BBVA"
)

Variables

View Source
var ErrCouldNotFindHeader error = errors.New("could not find header")

Functions

This section is empty.

Types

type XLSX

type XLSX struct {
	Rows [][]string

	HeaderRowIndex    int
	HeaderColumnIndex int

	// HeaderKeys maps a column index to its header label.
	HeaderKeys map[int]string

	Items []XLSXItem
}

func ParseXLSXFile

func ParseXLSXFile(file string) (*XLSX, error)

type XLSXItem

type XLSXItem struct {
	Cells [][2]string
}

Directories

Path Synopsis
cmd
bbva-to-json command

Jump to

Keyboard shortcuts

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