Skip to content

Commit

Permalink
docs(readme): better installation guide
Browse files Browse the repository at this point in the history
  • Loading branch information
vlastahajek committed Oct 2, 2020
1 parent 731a6e0 commit 1c8cc22
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ There are also other examples in the API docs:
### Installation
**Go 1.13** or later is required.

Add import `github.com/influxdata/influxdb-client-go/v2` to your source code and sync dependencies or directly edit the `go.mod` file.
1. Add the client package your to your project dependencies (go.mod).
```sh
go get github.com/influxdata/influxdb-client-go/v2
```
1. Add import `github.com/influxdata/influxdb-client-go/v2` to your source code.

### Basic Example
The following example demonstrates how to write data to InfluxDB 2 and read them back using the Flux language:
Expand Down

0 comments on commit 1c8cc22

Please sign in to comment.