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 }