Tool windows are windows that provide access to project management, search, running and debugging, integration with version control systems, and other tasks. The Project tool window, which is on the left side, displays your project files.
When a project is opened, you see the main window divided into several logical areas. From the Welcome to GoLand dialog, you can create and open projects, check out a project from a version control system, view documentation, and configure the IDE. When you launch GoLand for the very first time, you see the Welcome to GoLand dialog. In the New Go File dialog, type a name of the file and select whether you want to create an empty Go file ( Empty file) or a Go file with the defined main function ( Simple application). Right-click the parent folder of a project, and select New | Go File.Ĭlick the parent folder of a project, press Alt+Insert, and select Go File.Ĭlick the parent folder of a project, navigate to File | New | Go File. To create a Go file, perform one of the following actions: To use a file browser, click the Browse icon. In the Location field, specify the path for the SDK. From the Version list, select the SDK version.
#Goland go modules download#
To download the Go SDK, click the Add SDK icon ( ) near the GOROOT field and select Download. In the file browser, navigate to the SDK version that is on your hard drive. To select a local copy of the Go SDK, click the Add SDK icon ( ) near the GOROOT field and select Local. You can select a local copy of SDK or download it. With Go modules, you do not need to keep your project files under GOPATH and can easily manage dependencies in your project. On the Welcome screen, click New Project.īy default, GoLand suggests creating a Go modules project. To create a project, perform one of the following actions: For more information about installing plugins, read Plugins.
#Goland go modules install#
To use other version control systems, install a corresponding plugin. Click OK.įor more information about version control systems, see Version control.
In the file browser, navigate to the SDK version that is on your hard drive.ĭownload: download the SDK. Click the Add SDK button and select between two options: To set the Go SDK, open settings Ctrl+Alt+S and navigate to Go | GOROOT.
You can specify a local path to the SDK or download it. Enter a path to the sources and clone the repository to your computer.Īfter you have opened your project, you need to specify the location of the Go SDK. To check out files from Mercurial, install and configure Mercurial and restart GoLand. Enter your GitHub credentials and grant access to your GitHub account. You will be redirected to where you need to click Authorize in GitHub. To check out files from GitHub, select GitHub and click Log In via GitHub. In the Welcome to GoLand dialog, click Get from Version Control.įrom the Version Control list, select Git or Mercurial: In the file browser, navigate to a folder with project files and click Open.Ĭlone an existing project from a Version Control System In the Welcome to GoLand dialog, click Open. You have three options to start working on a project inside the IDE:Ĭheck out a project from the Version Control System (VCS) It serves as a basis for coding assistance, bulk refactoring, coding style consistency, and other features. Everything you do in GoLand is done within the context of a project. Open or create a Go project in GoLandĪfter you have installed GoLand and launched it for the first time, you need to create a project. You can also check our introduction videos: GoLand installation (3:50), introduction to UI and projects (6:07), running projects, tests, and benchmarks (5:01). This quick start guide will introduce you to the key concepts and help you with your first steps in GoLand.