Go Native API

The Git repository for the Go Native API client is located here

Dependencies

  • golang >= 1.13
  • make >= 3.0
  • curl >= 7.1.1
  • thrift 0.15.0
  • Linux、Macos or other unix-like systems
  • Windows+bash (WSL、cygwin、Git Bash)

Installation

  • go mod

``` 1. export GO111MODULE=on 2. export GOPROXY=https://goproxy.io

  1. mkdir session_example && cd session_example

  2. curl -o session_example.go -L https://github.com/apache/iotdb-client-go/raw/main/example/session_example.go

  3. go mod init session_example

  4. go run session_example.go ```
  5. GOPATH

``` 1. # get thrift 0.15.0 2. go get github.com/apache/thrift 3. cd $GOPATH/src/github.com/apache/thrift 4. git checkout 0.15.0

  1. mkdir -p $GOPATH/src/iotdb-client-go-example/session_example
  2. cd $GOPATH/src/iotdb-client-go-example/session_example
  3. curl -o session_example.go -L https://github.com/apache/iotdb-client-go/raw/main/example/session_example.go
  4. go run session_example.go ```