You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice, but algorithmic approaches can do a partial job at best. Heuristics might be able to identify the subject of the first sentence of the doc comment, but the name might appear many times within the doc comment (and other comments), capitalized or not, and it's impossible to distinguish identifiers from technical terms in comments.
When I run
gorename -from '"package".Foo' -to 'Bar'
on the following:gorename currently leaves the comment untouched, but it would be nice if the comment updated as well, to:
The text was updated successfully, but these errors were encountered: