GoLand 2022.2 EAP #5 is out there. You will get the EAP construct by way of the Toolbox App, obtain it from our web site, use a snap bundle for Ubuntu, or from inside GoLand choose Test IDE updates for Early Entry Program in Preferences / Settings | Look & Conduct | System Settings | Updates.
Robotically injected SQL statements
SQL statements are actually mechanically injected in each string literal that matches a sure sample.
Yow will discover the patterns, edit them, and add your individual in Preferences / Settings | Editor | Language Injections.
Yow will discover extra details about how you can use the patterns on this web page.
Intention motion to transform empty interface to ‘any’
GoLand now has an inspection that experiences the utilization of an empty interface as a kind or a kind constraint.
There may be additionally an intention motion that can enable you rapidly change interface{}
with any
. From the intention motion’s popup, you may change all empty interfaces in a file.
You may see all accessible intention actions by inserting the caret on a chunk of code and urgent ⌥ ↩ (Alt+Enter).
By default, the inspection doesn’t spotlight the related circumstances, however you may change this within the settings: Go to Editor | Inspections | Go | Normal | Utilization of ‘interface{}’ as a kind.
You may edit the inspection’s severity and highlighting mode from the intention motion’s popup.
The inspection and intention motion work provided that GOROOT and the Go model in go.mod
are 1.18 or later.
New ‘Discover Usages’ group for kind parameters
We’ve launched a brand new Discover Usages group for generics: Sort parameter declaration. Now GoLand explicitly tells you the place your interface is used as a constraint.
Fast Documentation updates
We’ve launched one other batch of enhancements for our Fast Documentation characteristic. You may set off Fast Documentation by hovering over an merchandise or inserting the caret on an merchandise and urgent F1 (Ctrl+Q on Home windows/Linux).
Sort parameters
If you happen to invoke Fast Documentation on a kind parameter, GoLand will present you a tooltip with a short rationalization of how generics work and a hyperlink to a tutorial by the Go workforce.
Sort switches
We even have a brand new tooltip explaining how kind switches work.
Preview for ‘iota’ constants
If a continuing is a part of an iota
group, the worth is now proven within the completion field, even when the fixed is outlined implicitly.
Go-related enhancements and bug fixes
The bug stopping you from working a program by way of the gutter has been fastened. We’re additionally persevering with to work on kind parameters help. We’ve now fastened 310+ generics-related points since November 2021.
HTTP Consumer
Help for WebSocket endpoints
GoLand now helps WebSocket connections. You may create requests in addition to ship and obtain messages.
Help for GraphQL endpoints
GoLand can now ship GraphQL queries over HTTP and WebSocket protocols out-of-the-box. For http://
and https://
easy HTTP requests are used, whereas ws://
and wss://
are delegated to the WebSocket executor.
UI/UX enhancements
We’ve launched a few UI/UX enhancements to the HTTP consumer.
Firstly, there may be now a handy approach to choose a run surroundings utilizing an icon on the gutter. To allow this characteristic, select the Choose Setting Earlier than Run possibility from the Run with combobox.
Secondly, we improved the Response view by including a progress bar, which lets you monitor the obtain course of.
Docker
Docker auto-connection at IDE restart
GoLand now mechanically connects to Docker after you restart the IDE. This new setting is enabled by default in Settings / Preferences | Superior Settings | Docker.
Integration with Colima and Rancher
As of v.2022.2, GoLand integrates with Colima and Rancher to help extra choices for establishing connections to a Docker daemon.
That’s it for at present! We’d love to listen to what you concentrate on our new options. Get in contact with us on Twitter, depart your feedback right here, open a difficulty in our tracker, or drop us a message within the Gophers Slack #goland channel. Thanks!