Use a struct instead of string slices

This commit is contained in:
2022-10-14 22:04:08 -07:00
parent f989049717
commit 2e68bb06af
5 changed files with 455 additions and 213 deletions

View File

@@ -123,13 +123,13 @@ func main() {
}
vals := msp.GenerateTimeline(periods...)
fmt.Print("\n")
fmt.Print("\nTimeline of changeovers:\n")
for _, val := range vals {
fmt.Print(val)
fmt.Println(val)
}
m, err := msp.MostSpecificPeriod(start, periods...)
if err != nil {
fmt.Printf("No significant period found")
fmt.Printf("No significant period found\n")
os.Exit(1)
}
if terminal {