GoLand offers the option to quickly generate a test.
Invoke with ⌘⇧T (macOS) / Ctrl+Shift+T (Windows/Linux), and select Test for ... from the popup.
You can choose to test a function/method, the whole file, or the whole package.
The following content is directly taken from the JetBrains Guide.
