iif

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 4 Imported by: 0

README

Intuit Interchange Format (.IIF) Parser

Install

go get github.com/joshuaslate/iif

Usage

iiifile, err := os.Open("./transactions.iif")
if err != nil {
	panic("failed to open transactions iif file")
}

defer iiifile.Close()

iifData, err := iif.FromFile(file)
if err != nil {
	panic("invalid iif file")
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Key     string
	RawData map[string]string
	Entries []Entry
}

Entry contains the key ("TRNS", "SPL", etc.), raw row data, and sub entries as applicable (splits, in the case of transactions)

func FromFile

func FromFile(iiifile io.Reader) ([]Entry, error)

FromFile accepts a tab-delimited Intuit Interchange Format (.IIF) file as input and parses it into a slice of Entry if valid

Jump to

Keyboard shortcuts

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