tdd stub bpis
This commit is contained in:
17
ledger/bpi.go
Normal file
17
ledger/bpi.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user