-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When running interpreted Goal (as in Cogent Content code blocks), wrapping code in a main function can result in out of range panics.
How to reproduce
Putting this code in a main function leads to a panic (runtime error: index out of range [19] with length 0):
Example code
type Data struct {
Time float32
Users float32
Profit float32
}
plotcore.NewEditor(b).SetSlice([]Data{
{0, 500, 1520},
{1, 800, 860},
{2, 1600, 930},
{3, 1400, 682},
})Relevant output
Platform
macOS
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working