Menu

1 / 16

Interactive refactoring in gopls : r/golang

#golang#redditgolang#refactoring#reddit#photo
Reading 0:00
15s threshold

r/golang

5d ago

u/e-san55

Top 1% Poster

Interactive refactoring in gopls

go.dev Introducing interactive refactoring in gopls and the LSP: a new capability that brings dynamic, multi-step refactorings into your favorite editor.

Open

comcastbusiness

•

Ad

Get the most comprehensive cybersecurity for small business at the best price + ask about a $500 prepaid card.

Learn More comcastbusiness.com

Best

Open comment sort options

Comments Section

not-cyril

5d ago

This is nice. A welcome proposal to the LSP spec, also some nice changes to gopls code actions.

TL;DR: Code actions can now prompt the user for something.

What is already implemented in new versions (targeting the vscode-go client for now, nvim and emacs might need some tinkering):

- Implementing interfaces with dynamic symbol search: you can now put your cursor on the concrete type, trigger the code action and specify the interface you want to implement

- Adding and removing struct tags: you can now choose what struct tags to…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.