Skip to content

Commit

Permalink
feat: use same API as in C# and JS
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar committed Oct 11, 2023
1 parent 1d654fd commit a113fee
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"time"

"github.com/InfluxCommunity/influxdb3-go/influxdb3"
"github.com/influxdata/line-protocol/v2/lineprotocol"
)

func main() {
Expand Down Expand Up @@ -96,15 +95,6 @@ func main() {

fmt.Printf("avg is %f\n", value["avg"])
fmt.Printf("max is %f\n", value["max"])

point := iterator.ValueAsPoint();
lp, err := point.MarshalBinary(lineprotocol.Millisecond);

if (err != nil) {
panic((err))
}

fmt.Print(string(lp))
}

}

0 comments on commit a113fee

Please sign in to comment.