Naming things is hard.
All checks were successful
Build & Test / Main (push) Successful in 2m26s

This commit is contained in:
2024-03-29 01:15:59 -07:00
parent 2d991880ce
commit 9e6abb1112
4 changed files with 48 additions and 52 deletions

View File

@@ -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},