8

I'm newbie to go lang and i created an hello project with intellij.

now I want to use external lib. for example:

connect into aerospike using:

http://www.aerospike.com/docs/client/go/examples.html

what I don't understand is how to import it into solution. I've run from the terminal the command:

go get github.com/aerospike/aerospike-client-go

but I don't see any result in the project and don't understand which object to use from my main method.

can you help?

Scott Stensland
  • 26,870
  • 12
  • 93
  • 104
user8215502
  • 201
  • 2
  • 8

1 Answers1

7

The go get command downloads the dependency to your $GOPATH dir from where it is accessible by the go compiler when building your sources. Now you simply have to import the package by its full name import github.com/aerospike/aerospike-client-go

Nestor Sokil
  • 2,162
  • 12
  • 28