tdd stub bpis

This commit is contained in:
Bel LaPointe
2023-10-25 12:54:36 -06:00
parent 84b9eb2455
commit f41ab4cb53
2 changed files with 178 additions and 0 deletions

17
ledger/bpi.go Normal file
View File

@@ -0,0 +1,17 @@
package ledger
import "io"
type BPIs string
type BPI map[string]float64
func NewBPIs(p string) (BPIs, error) {
bpis := BPIs(p)
_, err := bpis.values()
return bpis, err
}
func (bpis BPIs) values() (map[Currency]BPI, error) {
return nil, io.EOF
}