IntelliJ IDEA 2024.1 Help

Go

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 project with Go modules support

Learn how to create a Go project, download and install Go SDK.

GOROOT and GOPATH

Configure GOROOT and GOPATH environment variables for your project.

Go modules

Start with your Go modules project in a couple of clicks.

Go tools

Though IntelliJ IDEA does most of the Go tools functionality automatically, you can still run gofmt, goimports, go generate, and go vet manually.

Go templates

See what features IntelliJ IDEA has for text/template and html/template packages.

Build constraints and vendoring

Define 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 labels

Label your goroutines with custom data to differentiate between during debugging.

Last modified: 17 June 2024