Backend Development 12 min read

GoLand 2022.2 Release Highlights: Generics, Fuzz Testing, SQL Detection, and More

GoLand 2022.2 introduces extensive enhancements for Go developers, including full support for generics, new fuzzy testing capabilities, automatic SQL detection, improved Quick Documentation, WebSocket and GraphQL client support, remote development integration, Docker tooling, and numerous UI and editor refinements.

Laravel Tech Community
Laravel Tech Community
Laravel Tech Community
GoLand 2022.2 Release Highlights: Generics, Fuzz Testing, SQL Detection, and More

Generics

GoLand 2022.2 adds new functionality for generics and the go.work file, including intent actions to convert empty interfaces to any , quick‑fixes for empty type parameters, and checks for unused type parameters, interface‑method unions, and type‑parameter constraints.

Convert empty interface to any

The new inspection reports uses of the empty interface as a type or constraint and offers a quick‑fix to replace interface{} with any throughout the file.

Quick‑fix for empty type‑parameter lists

Type parameters with empty parameter lists are now reported as errors with a quick‑fix to remove them.

Unused type‑parameter inspection

Unused type parameters are highlighted and greyed out, with a warning shown on hover.

Interface‑method union check

Combining interfaces with methods in a union now triggers an error.

Constraint‑use check

Using a type parameter as a constraint now produces an error.

Completion for type‑parameter identifiers

When creating a method, GoLand automatically inserts the identifier for the type parameter.

New Find Usages group for type parameters

A dedicated Find Usages group for type‑parameter declarations has been added.

Fuzz Testing

Fuzz tests can now be run directly from GoLand. Clicking the green triangle next to a fuzz test shows run options, and failed seeds are written to the testdata folder. The failing seed can be opened via a clickable link in the console, and the test can be re‑run with go test .

Go Workspace

A quick‑fix groups multiple use directives in a go.work file into a single directive.

Go 1.19 Support

Support for fmt.Appendf , the new unix build constraint, and the loong64 architecture has been added.

Quick Documentation

Quick Documentation now shows tooltips for all 25 Go keywords, channel direction information, enhanced iota details, type‑switch explanations, generic usage hints, type‑assertion info, and map/array/slice/struct initializer guidance.

Automatic SQL Detection

SQL statements embedded in string literals are automatically detected and language‑injected, providing full code assistance. Injection patterns can be edited in Preferences | Editor | Language Injections.

Run Anything

The Run Anything feature allows quick launching of run/debug configurations, applications, scripts, commands, and tasks by pressing ^ twice and typing the desired action.

HTTP Client

GoLand now supports WebSocket endpoints and native GraphQL queries over HTTP and WebSocket protocols, with appropriate URL handling.

Remote Development

The Remote Development section on the welcome screen has been updated, allowing backend orchestration method selection and enabling port‑forwarding for processes running in the terminal.

Space Integration

JetBrains Space is fully integrated, letting users browse projects, clone repositories, create merge requests, and perform code reviews directly from GoLand.

User Interface Improvements

macOS now offers a Merge All Project Windows action, a new shortcut to change font size (⌃⇧. / ⌃⇧,), mnemonic bookmark descriptions, cloning progress in the Projects view, and faster access to Code Completion Settings.

Editor Enhancements

Added an option to toggle automatic parentheses insertion on completion, new highlighting styles for inspections, and customizable severity levels.

Docker

New Copy Docker Image operation, automatic Docker reconnection on IDE restart, and integration with Colima and Rancher.

Databases

Multiple CSV files can now be imported at once, and two parsing modes—Playground and Script—are available for database queries.

Other Improvements

Trusted SSL certificates can be imported from the system store, and URLs in JSON/YAML files become clickable links.

GoGenericsIDEFuzzTestingGoLand
Laravel Tech Community
Written by

Laravel Tech Community

Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.