4 ms·
Gorename: easy refactoring tool for Golang
- tmrmn 12y agoat first i've read it as 'gore-name'... not the nicest thing
- Twirrim 12y agoYup. Took me a moment or two to even realise what its real name was
- jamieomatthews 12y agoYeah...a dash would do wonders for that
- fidz 12y agoIt should GoRename. or go-rename. or something that everyone can obviously distinguish it.
- scarboy 12y agoIt's no expertsexchange. I wouldn't bother changing it.
- Kapura 12y agoI think GoreName should be the canonical pronunciation simply because it's more fun.
- lazyjones 12y agoNote that Go comes with a powerful refactoring tool "out of the box": http://golang.org/cmd/gofmt/ http://golang.org/cmd/gofmt/ It allows easy renaming of variables, constants etc.
- pjmlp 12y agoDoes it also extract methods, convert fields into accessors, move code between packages while updating import statements, update comments that relate to code, move methods across types? Renaming is only Refactoring 101.
- nl 12y agoNow for IDE integration. Please!
- jdfellow 12y agovim-go integrates with it already. Put your cursor on a name, type :GoRename, et voila all other instances across your project are updated.
- nl 12y agoBut then I'd have to use Vim :(
- farslan 12y agoHere is a screencast example of using it with Vim: http://quick.as/dgof2p7 http://quick.as/dgof2p7
- dawkins 12y agoin liteIde press ctrl+shift+r to rename. ctrl+shift+u to find where is used. I don't think it uses gorename though.
- Dylan16807 12y agoSo how about the objections in https://news.ycombinator.com/item?id=8579893 https://news.ycombinator.com/item?id=8579893
- AYBABTME 12y agoThis person is just wrong. It's not because the tools weren't there or the commenter was unaware of how they work, that Go is bad at refactoring. It's very easy to write correct, type safe refactoring tools on Go code.