Early Access Program

GoLand 2022.2 EAP #4 Is Out With Support for Fuzz Testing and New Documentation Features

The fourth build of our current Early Access Program is now 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

Download GoLand 2022.2 EAP #4

Fuzz testing

You can now run fuzz tests from GoLand. If you click on the green triangle icon in the gutter next to your fuzz test, you will see different options for running the test. If the test fails, the failing seed corpus entry will be written to a file and placed in your package directory in the testdata folder. 

The path to this file will also appear in the console as a clickable link. If you click on the link, the file will be opened in the IDE, and you will see a green triangle icon at the top of the file. Clicking on this icon will run go test with the failing seed corpus entry. 

Generics: bug fixes

Another false-negative error has been fixed. We’ve now fixed more than 300 generics-related issues since November 2021.

The ‘Irregular usage of iota’ inspection

A new inspection will warn you if iota is used irregularly. For instance, explicitly referring to iota within one constant specification does not reset the counter, and our new inspection will detect such cases.

We’ve also enabled the Reserved word used as name inspection for iota and other built-in constants. It will be triggered if you try to assign values to constants named iota, true, or false.

Improved quick documentation

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).  

Composite literals

GoLand now displays additional information when you initialize maps, arrays, slices, and structs if you hover over the area inside the curly braces. We hope this will be helpful for beginners and users coming from other languages.

Type assertions

We’ve improved keyword documentation in type assertions. The tooltip now contains additional information about type assertions and examples.  

Blank identifier 

If you hover over the blank identifier, GoLand now shows a tooltip with information about what the blank identifier is and how it works.   

That’s it for today. Please tell us what you think about the 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!

Discover more