diff --git a/code/go/example.go b/code/go/example.go index a9f2ea7..5052580 100644 --- a/code/go/example.go +++ b/code/go/example.go @@ -5,8 +5,9 @@ package main import ( "context" "fmt" - "github.com/neo4j/neo4j-go-driver/v5/neo4j" "reflect" + + "github.com/neo4j/neo4j-go-driver/v6/neo4j" ) func main() { @@ -21,7 +22,7 @@ func main() { func runQuery(uri, database, username, password string) (_ []string, err error) { ctx := context.Background() - driver, err := neo4j.NewDriverWithContext(uri, neo4j.BasicAuth(username, password, "")) + driver, err := neo4j.NewDriver(uri, neo4j.BasicAuth(username, password, "")) if err != nil { return nil, err } diff --git a/code/go/example_aura.go b/code/go/example_aura.go index 02d8fe5..4d07b16 100644 --- a/code/go/example_aura.go +++ b/code/go/example_aura.go @@ -3,7 +3,8 @@ package main import ( "context" "fmt" - "github.com/neo4j/neo4j-go-driver/v5/neo4j" + + "github.com/neo4j/neo4j-go-driver/v6/neo4j" ) func main() { @@ -12,7 +13,7 @@ func main() { // (You may need to replace your connection details, username and password) uri := "neo4j+s://" auth := neo4j.BasicAuth("", "", "") - driver, err := neo4j.NewDriverWithContext(uri, auth) + driver, err := neo4j.NewDriver(uri, auth) if err != nil { panic(err) } diff --git a/code/go/go.mod b/code/go/go.mod index e43576e..4e35c32 100644 --- a/code/go/go.mod +++ b/code/go/go.mod @@ -1,5 +1,5 @@ module example -go 1.20 +go 1.24 -require github.com/neo4j/neo4j-go-driver/v5 v5.8.0 +require github.com/neo4j/neo4j-go-driver/v6 v6.0.0 diff --git a/code/go/go.sum b/code/go/go.sum index a3caa35..df647a1 100644 --- a/code/go/go.sum +++ b/code/go/go.sum @@ -1,2 +1,2 @@ -github.com/neo4j/neo4j-go-driver/v5 v5.8.0 h1:I+jtnFbbN9FvRP5etOsrdJNNEThHUCe6pO0MFk1md04= -github.com/neo4j/neo4j-go-driver/v5 v5.8.0/go.mod h1:Vff8OwT7QpLm7L2yYr85XNWe9Rbqlbeb9asNXJTHO4k= +github.com/neo4j/neo4j-go-driver/v6 v6.0.0 h1:xVAi6YLOfzXUx+1Lc/F2dUhpbN76BfKleZbAlnDFRiA= +github.com/neo4j/neo4j-go-driver/v6 v6.0.0/go.mod h1:hzSTfNfM31p1uRSzL1F/BAYOgaiTarE6OAQBajfsm+I=