github golang/tools gopls/v0.6.10

latest releases: gopls/v0.17.0-pre.2, gopls/v0.17.0-pre.1, v0.27.0...
3 years ago

gopls/v0.6.10

Features

t.Fatal snippet

If you trigger completion in a test function, on the line after a call to a function that returns an error, you will be offered a completion snippet for:

if err != nil {
    t.Fatal(err)
}

See the example below:

Screen Shot 2021-04-13 at 4 17 41 PM

Experimental

Postfix completion snippets

Postfix completions are a new style of completions that can save you time by inserting more complex pieces of commonly-written code. All of the results end with !. Enable this feature by setting "ui.completion.experimentalPostfixCompletions": true.

See this example:

ezgif-3-a82b2077ff38

Fixes

A full list of all issues fixed can be found in the gopls/v0.6.10 milestone. To report a new problem, please file a new issue at https://golang.org/issues/new.

Thank you to our contributors!

@marwan-at-work @soluchok @zchee @ShoshinNikita @Makima0 @muirdm @steeve

Don't miss a new tools release

NewReleases is sending notifications on new releases.