func ExampleClient() {
	_, err := client.NewHTTPClient(client.HTTPConfig{
		Addr:     "http://localhost:8086",
		Username: os.Getenv("INFLUX_USER"),
		Password: os.Getenv("INFLUX_PWD"),
	})
	if err != nil {
		fmt.Println("Error creating InfluxDB Client: ", err.Error())
	}
}
Create a new client
package client_test
import (
	"fmt"
	"math/rand"
	"os"
	"time"
	"github.com/influxdata/influxdb1-client/v2"
)