I use Eclipse as IDE for Go (I guess it's called "Goclipse"), developing a web application. All went good and nice until I started to split functionality in smaller packages. Initially I had a package gitserver/user/project/portal
. File main.go
imported it and everything was working. I suddenly realized, that it should be called gitserver/user/project/webserver
instead, and some other files and functionality should go into .../portal
. So I did "Rename", by right clicking in Project Explorer.
main.go:
package main
import(
"gitserver/user/project/webserver"
)
func main(){
webserver.DoSomeStuff()
}
Compiler complains that
- imported and not used "gitserver/user/project/webserver" as portal
- undefined: webserver
[...]
How to untie the "webserver" package from its old name?