Original post

Hello there! New week – new Early Access build, and it’s packed with new features of course! Remember, you don’t need to wait for the announcements, as we regularly release nightly builds based on the latest development code. These nightly builds are only available via the Toolbox App.

You can get this EAP build through the Toolbox App, by downloading it from the website, or by using a snap package (for Ubuntu). Or update from right inside by selecting Automatically check updates for Early Access Program in Preferences / Settings | Appearance & Behavior | System Settings | Updates.

Download GoLand 2020.3 EAP #2

The EAP builds are free to use but expire within 30 days of the build date.

Code completion for

When you complete a function or method that accepts .T as the first argument, GoLand passes that argument automatically if possible. This works for functions and methods of testify/assert, testify/require, testify/mock, and testify/suite packages.

Kill processes during sessions

It is now possible to kill a process on a remote machine during a remote debug session if no reattach is required.

Code inspection for potentially unsafe uses of context cancellation

The context.CancelFunc not called code inspection checks that a ‘cancel’ function returned by context.WithCancel (and similar functions) is called on all execution paths.

The WithCancel, WithDeadline, and WithTimeout functions take a Context (the parent) and return a derived Context (the child) and a CancelFunc. Calling the CancelFunc cancels the child and its children, removes the parent’s reference to the child, and stops any associated timers. Failing to call the CancelFunc leaks the child and its children until the parent is canceled or the timer fires.

To learn more about, please visit https://golang.org/pkg/context/.

Support for fmt.Sprintf() expressions with %s and %d for table tests

Starting from EAP 2, a subtest name expression can be a fmt.Sprintf() call with %s and %d verbs.

The VCS menu matches the version control system that you are currently using, making it easier to access key VCS features as they are no longer hidden in a submenu.

Math expressions in Search Everywhere

You can now evaluate math expressions right in the Search Everywhere popup!

System shortcut keymap for macOS

This plugin aims to provide you with an alternative macOS keymap that offers extended compatibility with system shortcuts and allows you to avoid using F-keys for essential actions.

Your feedback is an invaluable source of ideas for improvement, so please send us your feature requests via the bug tracker or tweet us @GoLandIDE.Thank you!