Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/cmd: add tool to convert between functions and methods #11657

Open
josharian opened this issue Jul 10, 2015 · 0 comments
Open

x/tools/cmd: add tool to convert between functions and methods #11657

josharian opened this issue Jul 10, 2015 · 0 comments
Assignees
Labels
Tools
Milestone

Comments

@josharian
Copy link
Contributor

@josharian josharian commented Jul 10, 2015

Discussed with @alandonovan yesterday, recording here.

It would be useful to have a refactoring tool that could convert between:

func (t T) f(x int)

and

func f(t T, x int)

and clean up all the callers. This could be do with eg, but for common refactorings, it might be nicer to have a tool that can just do it, without having to write a template (or write a template generator), so that it can be invoked easily by IDEs. This probably just means new frontends to eg.

@josharian josharian added this to the Unreleased milestone Jul 10, 2015
@gopherbot gopherbot added the Tools label Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tools
Projects
None yet
Development

No branches or pull requests

3 participants