green

package
v0.0.0-...-6060dae Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Trans

func Trans(d *[]CSV, v *ledger.ViewData)

Convert to Ledger format and pack it up into ledger.ViewData

func UnmarshalCSV

func UnmarshalCSV(f *os.File, d *[]CSV)

Unmarshal the CSV into a struct

Types

type CSV

type CSV struct {
	Datetime    string `csv:"time"`
	Description string `csv:"description"`
	TxID        string `csv:"txhash"`
	Conf        string `csv:"confirmations"`
	Amount      string `csv:"amount"`
	Currency    string `csv:"unit"`
	Fee         string `csv:"fee (L-BTC)"`
	Note        string `csv:"memo"`
}

A data structure to match the CSV from Bitstamp

Jump to

Keyboard shortcuts

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