rharris
rharris

Reputation: 131

How do I create a new GoClipse project so that it follows the normal Go project structure?

My Environment:

My GoClipse Settings:

When I create a new Go project using default settings, the project folder is put under the eclipse workspace: /Users/ray/go_workspace/project with the bin, pkg, and src folders as subfolders.

What I want to do is create a new Go project and have it use:

How do I configure Eclipse/GoClipse/Project settings to get this to work?

Upvotes: 1

Views: 541

Answers (1)

BrunoMedeiros
BrunoMedeiros

Reputation: 1461

Unfortunately the above is not possible. The closest you can get is creating your Eclipse project in the location /Users/ray/go/src/github/user/project (note that beforehand you will need to set the Eclipse preferences GOPATH to /Users/ray/go). This way you will have:

  • /Users/ray/go/src/github/user/project for the source directory
  • /Users/ray/go/pkg/darwin_amd64/github/user/project for the package directory
  • /Users/ray/go/bin for the binary directory

but Eclipse settings/files will be in /Users/ray/go/src/github/user/project. (ATM, the only Eclipse files are .project and .settings/. You can add these to Git ignore if you are concerned about them appearing in version control)

Upvotes: 0

Related Questions