Skip to content

Commit

Permalink
docs: add example usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jansimonb committed Feb 27, 2025
1 parent 7fd60fd commit 46a1181
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions influxdb3/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ import (

func ExampleNew() {
client, err := New(ClientConfig{
Host: "https://us-east-1-1.aws.cloud2.influxdata.com",
Token: "my-token",
Database: "my-database",
Host: "https://us-east-1-1.aws.cloud2.influxdata.com",
Token: "my-token",
Database: "my-database",
SSLRootsFilePath: "/path/to/certificates.pem",
Proxy: "http://localhost:8888",
})
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 46a1181

Please sign in to comment.