I'm newbie with goLang. I'm trying to build a project from intellij that use a package from git library using:
import (
"github.com/aerospike/aerospike-client-go"
)
but I'm getting: "unused import"
I've set my gopath into \users\myuser\go
and added it into intelij settings, but I'm getting now unused import
and the project does not recognize the 3rd party objects.
Should I import the module into my solution? I see that it exist in the file system: \users\myuser\src\github.com\aerospike\aerospike-client-go
Can you assist me?
Thanks
You are importing a package that you are not using; your compiler is trying to prevent this to keep performance up.
Just remove:
import (
"github.com/aerospike/aerospike-client-go"
)
and it should compile.
See this question for more.