diff --git a/README.md b/README.md index d437b4d..ef5b7d8 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,12 @@ OpenGemini is an open-source time series database, find more about OpenGemini at ## Usage -Import the client library: +Import the Client Library: + +The example code use the dot import, but the user should choose the package import method according to their own needs ```go -import . "github.com/openGemini/opengemini-client-go" +import . "github.com/openGemini/opengemini-client-go/opengemini" ``` Create a Client: @@ -43,7 +45,7 @@ Create a Database: } ``` -Write a single point: +Write single point: ```go exampleMeasurement := "ExampleMeasurement" diff --git a/examples/example/example.go b/examples/example/example.go index 3bdffce..324f77d 100644 --- a/examples/example/example.go +++ b/examples/example/example.go @@ -1,5 +1,9 @@ package main +/* + The example code use the dot import, but the user should choose the package import method according to their own needs +*/ + import ( "fmt" . "github.com/openGemini/opengemini-client-go/opengemini"