New Features in GoLand 2021.1
A selection of useful features from GoLand 2021.1
GoLand 2021.1 was released on April 7th, 2021! It allows you to build and run your program remotely via Docker, SSH, and WSL 2, use newly supported features from Go 1.16, including //go:embed, quickly generate code from JSON, and handle errors with ease using new quick fixes, among other new features and enhancements!
Check out DataGrip 2021.1 What's New and WebStorm 2021.1 What's New to read all about the new features related to database and modern web development included in GoLand.
Run Target support via WSL
Run your application or tests in Windows Subsystem for Linux (WSL) with ease.
Run Targets are an IDE feature that allows you to run code in environments where GoLand is not installed.
If a target already exists, select it from the Run on field in a Run Configuration, then run that configuration.
If not targets exist, then click on Manage Targets, next to the Run on field.
Then, click + (macOS) / Plus (Windows/Linux) and select in which environment you want to run the application or test.
After the IDE introspects that environment, click on Next, confirm the environment settings, and click OK.
Then select the newly created target in the Run on field.
Configure any additional options, and, finally, run the configuration as with any other.
If you want to compile your sources in a remote environment, then select the Build on remote environment option from the Run Configuration settings.
You choose to compile on the local machine. This means you don't have to worry about the dependencies being available in that environment.