In testing and inspection it's often handy to get a lineprotocol representation of how a Point will be written to Influxdb. This currently can be done by creating a string from the results of the method MarshalBinary. However this is not a friendly or intuitive solution.
Expected behavior
A method with a name like ToLineprotocol would be more intuitive.
e.g.
Use Case
In testing and inspection it's often handy to get a lineprotocol representation of how a
Point
will be written to Influxdb. This currently can be done by creating a string from the results of the methodMarshalBinary
. However this is not a friendly or intuitive solution.Expected behavior
A method with a name like
ToLineprotocol
would be more intuitive.e.g.
Actual behavior
Currently I need to write a similar function in a local project, though ideally it should be a method for the Point type.
Additional info
No response