This commit is contained in:
20
moon/moon.go
20
moon/moon.go
@@ -2,7 +2,6 @@ package moon
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"math"
|
||||
"time"
|
||||
|
||||
@@ -115,25 +114,6 @@ type Column struct {
|
||||
Projections Projection
|
||||
}
|
||||
|
||||
func (c *Column) Column() (entries []string) {
|
||||
entries = append(entries, fmt.Sprintf("$%.2f", c.StartingPrice))
|
||||
entries = append(entries, fmt.Sprintf("%.2f%%", (c.CDPR-1)*100))
|
||||
never := c.CDPR <= 1
|
||||
for i := range c.Projections.Dates {
|
||||
var cell string
|
||||
if never {
|
||||
cell = "NEVER!!!!!"
|
||||
} else {
|
||||
cell = c.
|
||||
Projections.
|
||||
Dates[i].
|
||||
Format("2006-01-02")
|
||||
}
|
||||
entries = append(entries, cell)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
var DefaultGoals = []Goal{
|
||||
{"$100k", 100000},
|
||||
{"$150k", 150000},
|
||||
|
Reference in New Issue
Block a user