my project organisation looks like this :
- GOPATH
- src
- cvs/user/project
- main.go
- utils
- utils.go
- cvs/user/project
- src
main.go looks like this :
package main import ( "fmt" "cvs/user/project/utils" ) func main() { ... utilsDoSomething() ... } and utils.go :
package utils import ( "fmt" ) func utilsDoSomething() { ... } The compiler tells me that :
main.go imported and not used: "cvs/user/project/utils" main.go undefined: utilsDoSomething I don't know what I'm doing wrong. Any idea would be helpful, thank you in advance !