Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
uppdated example
  • Loading branch information
Ignalina authored Oct 16, 2022
1 parent 214666b commit 214cb95
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,19 @@ cases in data engineering scenarios.
## Usage example
Asume you have a MyCoolRustLib.a
```golang
package main

listOfarrays := []arrow.Array{arr1, arr1}
import (
"fmt"
"github.com/apache/arrow/go/v9/arrow"
"github.com/apache/arrow/go/v9/arrow/array"
"github.com/apache/arrow/go/v9/arrow/memory"
"github.com/ignalina/alloy"
)

fmt.Printf("[Go]\tCalling the goBridge with:\n\tarr: %v\n", listOfarrays)
// Assume you have 2 arrays arr1, arr2 ..

listOfarrays := []arrow.Array{arr1, arr2}

goBridge := GoBridge{GoAllocator: mem}
i, err := goBridge.From_chunks(listOfarrays)
Expand Down

0 comments on commit 214cb95

Please sign in to comment.