go-plotly
go-plotly copied to clipboard
Try to implement arrayok types
this is an attempt to implement arrayok types. This example just covers float64, but it should be easy to extrapolate to any other type.
The idea is that if the Array
is defined, it will use that to create the json file and otherwise it will use the Value
.
When using this to write code, it just introduces a small indirection with the advantage of keeping the type safety.