GoLand now provides automated inspections and quick-fixes to help migrate Go codebases to version 1.26 syntax. The IDE highlights two key modernization opportunities: replacing pointer creation patterns with the new `new()` expression syntax, and converting `errors.As` calls to the type-safe `errors.AsType` function. Developers

4m read time From blog.jetbrains.com
Post cover image
Table of contents
Applying syntax updatesExpanding from one fix to the whole projectWhat this approach to syntax updates changes in practice

Sort: