IntelliJ IDEA 2021.2 Help


The Go functionality in IntelliJ IDEA is supported by the Go plugin. The Go plugin provides support of all the features that are available in GoLand, the standalone IDE for Go developers. With the Go plugin, you can work with Go tools, vendoring, Go modules, download new Go SDK versions right from the IDE, and use other Go-specific features.

First steps with Go in IntelliJ IDEA

These set of topics are focused on describing features, functionality, the application interface, and might help you to get started quickly.

Create a Go projectLearn how to create a Go project, download and install Go SDK.
GOROOT and GOPATHConfigure GOROOT and GOPATH environment variables for your project.
Go modulesStart with your Go modules project in a couple of clicks.
Go toolsThough IntelliJ IDEA does most of the Go tools functionality automatically, you can still run gofmt, goimports, go generate, and go vet manually.
Go templatesSee what features IntelliJ IDEA has for text/template and html/template packages.
Build constraints and vendoringDefine rules under which files are included in the package and build your application only with dependency packages that are stored inside your project.
Using profiler labelsLabel your goroutines with custom data to differentiate between during debugging.
Last modified: 08 July 2021