如何在Golang中将LineProtocol数据推送到Influxdb中?

I have JSON data coming from Prometheus metric and I have converted it into line-protocol.

How can I push this converted data into influx db using golang?

You could use the InfluxDB golang Client

I assume the structure would something like

 inputMeas := "meas1,tag1=va1,tag2=va2 value=342"
 client.Write(inputMeas)
 // check for response status

The Above mentioned client infact has a detailed README in order to better understand how you can write your information to InfluxDB. If you have a lot of information you can try using Batch Upload also.