
GoLand 2022.2 EAP #7 is now accessible! You may 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.
Help for fmt.Appendf
Go 1.19 introduces three new capabilities to the fmt
bundle: Append
, Appendln
, and Appendf
. Right here’s how the Go crew describes them:
These are simple variants of the present
Sprintf
and so forth., however append the ensuing bytes to a supplied buffer quite than returning a string.
We’ve added assist for fmt.Appendf
, and now GoLand identifies formatting verbs inside strings. In consequence, the Appendf
perform will get all the options that formatting capabilities have, just like the Add a format string argument intention motion.

Efficiency optimization: cease scanning ~/go/pkg/mod/cache
If you work in GoLand, the IDE scans GOMODCACHE
(~/go/pkg/mod
) to counsel dependencies. GOMODCACHE
contains a cache
subdirectory that comprises some metadata and different info that isn’t wanted for GoLand to work appropriately.
We determined to cease scanning the cache
subdirectory. This folder will be pretty giant, and we hope that excluding it from the scan will enhance efficiency.

Resolve modes for databases
When working with the databases, you now have two file resolve modes: Playground and Script. It is best to select the Playground mode in case your SQL script is only a set of unconnected queries, impartial of one another and with no explicit sequence.
In case your queries have sequential logic and must be run as a single script, select the Script mode. An in depth description of this new workflow is offered on this publish from the DataGrip crew.

Change the highlighting type for inspections
If you wish to change the highlighting type for an inspection, you’ll be able to configure this utilizing the brand new Highlighting in editor dropdown menu in Preferences/Settings | Editor | Inspections.

This transformation provides you extra choices for customizing inspections. For instance, you’ll be able to set the severity degree of a specific inspection to Warning however change the highlighting type to Error. With this configuration, GoLand will show a yellow triangle within the high proper nook of the editor and within the Issues window, however the related code can be underlined by a crimson squiggly line.

That’s it for at present! We worth your suggestions – please be happy to 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!