Go logo


A cross-platform Go IDE with extended support for JavaScript, TypeScript, and databases

Early Access Program

GoLand 2022.2 EAP #5 Is Out with Automatically Injected SQL Statements , Support for WebSocket and GraphQL Endpoints, and More!   

GoLand 2022.2 EAP #5 is available. You can get the EAP build via the Toolbox App, download it from our website, use a snap package for Ubuntu, or from inside GoLand select Check IDE updates for Early Access Program in Preferences / Settings | Appearance & Behavior | System Settings | Updates


Automatically injected SQL statements  

SQL statements are now automatically injected in every string literal that matches a certain pattern. 

You can find the patterns, edit them, and add your own in Preferences / Settings | Editor | Language Injections

You can find more information about how to use the patterns on this page.

Intention action to convert empty interface to ‘any’ 

GoLand now has an inspection that reports the usage of an empty interface as a type or a type constraint. 

There is also an intention action that will help you quickly replace interface{} with any. From the intention action’s popup, you can replace all empty interfaces in a file. 

You can see all available intention actions by placing the caret on a piece of code and pressing ⌥ ↩ (Alt+Enter). 

By default, the inspection doesn’t highlight the relevant cases, but you can change this in the settings: Go to Editor | Inspections | Go | General | Usage of ‘interface{}’ as a type

You can edit the inspection’s severity and highlighting mode from the intention action’s popup.

The inspection and intention action work only if GOROOT and the Go version in go.mod are 1.18 or later. 

New ‘Find Usages’ group for type parameters

We’ve introduced a new Find Usages group for generics: Type parameter declaration. Now GoLand explicitly tells you where your interface is used as a constraint.  

Quick Documentation updates

We’ve introduced another batch of improvements for our Quick Documentation feature. You can trigger Quick Documentation by hovering over an item or placing the caret on an item and pressing F1 (Ctrl+Q on Windows/Linux).  

Type parameters 

If you invoke Quick Documentation on a type parameter, GoLand will show you a tooltip with a brief explanation of how generics work and a link to a tutorial by the Go team. 

Type switches

We also have a new tooltip explaining how type switches work.  

Preview for ‘iota’ constants

If a constant is part of an iota group, the value is now shown in the completion box, even if the constant is defined implicitly.  

Go-related improvements and bug fixes

The bug preventing you from running a program via the gutter has been fixed. We’re also continuing to work on type parameters support. We’ve now fixed 310+ generics-related issues since November 2021.

HTTP Client 

Support for WebSocket endpoints 

GoLand now supports WebSocket connections. You can create requests as well as send and receive messages.

Support for GraphQL endpoints

GoLand can now send GraphQL queries over HTTP and WebSocket protocols out-of-the-box. For http:// and  https:// simple HTTP requests are used, while ws:// and wss:// are delegated to the WebSocket executor.

UI/UX improvements

We’ve introduced a couple of UI/UX improvements to the HTTP client. 

Firstly, there is now a convenient way to select a run environment using an icon on the gutter. To enable this feature, choose the Select Environment Before Run option from the Run with combobox.

Secondly, we improved the Response view by adding a progress bar, which allows you to track the download process.


Docker auto-connection at IDE restart

GoLand now automatically connects to Docker after you restart the IDE. This new setting is enabled by default in Settings / Preferences | Advanced Settings | Docker.

Integration with Colima and Rancher

As of v.2022.2, GoLand integrates with Colima and Rancher to support more options for establishing connections to a Docker daemon.

That’s it for today! We would love to hear what you think about our new features. Get in touch with us on Twitter, leave your comments here, open an issue in our tracker, or drop us a message in the Gophers Slack #goland channel. Thanks!

image description