Skip to content

Commit

Permalink
docs: add import notice to README and example (openGemini#41)
Browse files Browse the repository at this point in the history
Signed-off-by: PennyYoon <525296438@qq.com>
  • Loading branch information
Chenxulin97 authored Jan 29, 2024
1 parent 35a09f6 commit e5c057e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

<i><font color=gray>The example code use the dot import, but the user should choose the package import method according to their own needs</font></i>

```go
import . "github.com/openGemini/opengemini-client-go"
import . "github.com/openGemini/opengemini-client-go/opengemini"
```

Create a Client:
Expand Down Expand Up @@ -43,7 +45,7 @@ Create a Database:
}
```

Write a single point:
Write single point:

```go
exampleMeasurement := "ExampleMeasurement"
Expand Down
4 changes: 4 additions & 0 deletions examples/example/example.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit e5c057e

Please sign in to comment.