This is the project structure
/bruteforce
--/src
----/services
------/bruteforce.go
----/start
------/workergenerator.go
In bruteforce.go i used "package services", and in workergenerator.go "package main". Now, i wrote a simple function in bruteforce.go, so in workergenerator.go i imported services package and called this function. This is the problem:
src/start/workergenerator.go:17:2: imported and not used: "services" src/start/workergenerator.go:26:5: undefined: bruteforce
As you can see, the package is imported well, but the function is not defined (?)
I added to the GOPATH the main folder of my project
/Users/simon/GolandProjects/bruteforce
Why does the compiler cause this error?