github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/docs/contributing/set-up-ide.md (about)

     1  ### Configure project for IDE (optional)
     2  
     3  In this section you will configure the project in order to make use of [GoLand](https://www.jetbrains.com/go)
     4  integrated development environment's (IDE) features like syntax highlighting and code completion.
     5  
     6  ## 1. Place repository to the GOPATH
     7  
     8  The repository has to be placed under `src` directory in GOPATH.
     9  The default location for Linux and macOS users is `~/go`, while for Windows it is `%USERPROFILE%\go`.
    10  
    11  Move the previously cloned repository or clone it again to the `<GOPATH>/src/github.com/docker/docker` directory.
    12  
    13  ## 2. Configure IDE
    14  
    15  Open the `<GOPATH>/src/github.com/docker/docker` directory in GoLand.
    16  Then open the settings (Ctrl+Alt+S) and change two settings:
    17  
    18  1. Disable Go modules integration
    19  
    20  ![Disabling Go modules integration](images/ide_go_modules_integration.png)
    21  
    22  3. Disable using system environment's GOPATH
    23  
    24  ![Disabling using system environment's GOPATH](images/ide_system_environment_gopath.png)
    25  
    26  ### Custom GOPATH
    27  
    28  In case the custom GOPATH is used (for example to have multiple copies of the cloned repository),
    29  it has to be configured in the settings as well:
    30  
    31  ![Configuring custom GOPATH](images/ide_custom_gopath.png)
    32  
    33  ## Where to go next
    34  
    35  Congratulations, you have finished configuring project to work with the IDE. 
    36  In the next section you'll [learn how to set up and work in a Moby development container](set-up-dev-env.md).