tools
tools copied to clipboard
gopls: add "Replace := with var declaration" code action
Add a new refactoring code action that converts short variable declarations to explicit var declarations with separate assignment.
Example:
x := 42
becomes:
var x int
x = 42
Fixes golang/go#74838