-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stream: json message to frame #5
Conversation
pkg/plugin/message_test.go
Outdated
|
||
func TestJSONValuesMessage(t *testing.T) { | ||
timestamp := time.Unix(1, 0) | ||
values := []interface{}{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
values := []interface{}{ | |
values := []float64{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a way to explode the float64
array with Sprintf
args? does not work with values...
, since it expects []interface{}
. Ideas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting! i just tried a few things -- nothing great, but looks like explicitly doing values[0], values[1], values[2]...
is the best option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
This does two things: