Registry /
database / influxdata-influxdb-client-go-v2
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
influxdb2
✓ github.com/influxdata/influxdb-client-go/v2
Create a new InfluxDB v2 client
package main
import (
"context"
"fmt"
influxdb2 "github.com/influxdata/influxdb-client-go/v2"
)
func main() {
client := influxdb2.NewClient("http://localhost:8086", "my-token")
defer client.Close()
fmt.Println("InfluxDB client created")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.14.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.