golang/go

x/tools/gopls: add a method snippet to postfix completion

Open

#55,154 opened on Sep 18, 2022

View on GitHub
 (5 comments) (0 reactions) (1 assignee)Go (19,008 forks)batch import
FeatureRequestToolsgoplshelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Is your feature request related to a problem? Please describe. Typing out methods is tedious because one always has to fill the receiver field. The meth snippet is great but this would be even better.

Describe the solution you'd like It would be real slick to have a completion from:

type X struct {}

X.meth!

to

type X struct {}

func (x X) _() {
}

Contributor guide