Release notes
This section lists functionality added to GoLand in the current release. To view release notes for other GoLand versions, click the version switcher on the help site and select the version that you need.
Go style: improved code folding style
GoLand introduces new options for code folding. You can set the following folding options:
One-line 'if' blocks with a single 'return'
One-line 'if' blocks with a single 'panic'
One-line 'if' blocks for error handling
One-line functions with a single 'return'
One-line case clauses
Formatted strings
For more information about code folding options, refer to Code Folding.
Navigation: file contents in the Structure view
The Structure tool window is a tool that gives you an overview of your project code layout. However, in large projects, some files in the package might have many fields and methods spread across multiple files.
Before, if you had methods for a structure declared in another file, you'd see the whole type with all its properties and methods. Now, in GoLand, you only see the methods in the current file.
AI: new enhancements
AI Assistant (limited access) supports the following features:
Chat with AI
Enables project-related conversations with the LLM.
Integration with project language, technologies, and version control.
Facility to insert generated code snippets into the editor.
Explain and refactor code
Explanation for selected code fragments.
Explanation for RegEx, cron expressions, and SQL queries.
Refactoring suggestions and potential problem identification.
Customizable prompts for personalized usage.
Using AI the editor
Code generation based on prompts.
AI-generated name suggestions during symbol renaming.
Working with commits
Automated generation of commit messages.
Summarization of changes in commits.
Generating Documentation
AI-assisted documentation generation for code declarations.
Disabling AI assistant
Options to disable AI Assistant at project and IDE levels.
file to disable AI features for a project.
For more information about AI Assistant, refer to AI Assistant.
Quick-fix: create a function in another package
GoLand has a quick-fix that allows you to type a function name and then implement it in a package of your choosing. Place the caret on a function name, press Alt+Enter to see all available fixes and select Create function ‘function name’.
In the pop-up window that appears, you will choose the target for the function. You can enter the name of an existing file or offer an unused name, in which case a new file will be created from scratch.
Quick documentation: show parameter information for slice expressions
Slice expressions can be a bit confusing, especially ones with three indices. GoLand shows you hints while you’re building slices.
Code editing: mark Printf-like functions as string formatting functions
GoLand provides a feature that identifies Printf
-like functions and applies corresponding coding assistance to them (for example, inspections, quick-fixes, spellchecking, highlighting, code folding, and so on).
For more information about formatting strings functionality, refer to Formatting strings.
Support of asdf
GoLand supports asdf local
and asdf global
commands, including specifying multiple versions (for example, asdf local golang 1.21.0 1.20.8
).
For more information about asdf, refer to Using asdf.