Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

golang and neo4j using golang-neo4j-bolt-driver

Tags:

go

neo4j

I'm trying out the golang-neo4j-bolt-driver package
github.com/johnnadratowski/golang-neo4j-bolt-driver

I have imported the package and am using the example way of creating a new driver:

driver := bolt.NewDriver()

i get the following:

./neo.go:5: imported and not used: "github.com/johnnadratowski/golang-neo4j-bolt-driver" as golangNeo4jBoltDriver
./neo.go:34: undefined: bolt in bolt.NewDriver

any pointers would be appreciated

like image 478
Albert s Avatar asked Mar 15 '17 19:03

Albert s


1 Answers

You will want to alias the name of the library

bolt "github.com/johnnadratowski/golang-neo4j-bolt-driver"

You can see this in their code examples

like image 153
Benjamin Kadish Avatar answered Nov 01 '22 17:11

Benjamin Kadish