News for hackers. Stuff that matters.
Re:A Rust Contributor Tries Their Hand at Go by zemo on Tuesday April 28, 2015 @12:55PM (#9453678)
pretty even-handed.

> The other day I had to make a bunch of fields public to satisfy Go's encoding package, and code needed to be updated everywhere with a manual find/replace (the same string was used in other contexts too so it couldn't be done automatically)

gofmt has syntax-level replacements. So you could do:

`gofmt -w -r 'unexportedName -> ExportedName' *.go`

or something similar, and it would do the correct thing, ignoring the string matches where it appears in other contexts.

Re:A Rust Contributor Tries Their Hand at Go by Manishearth on Tuesday April 28, 2015 @01:14PM (#9453807)
Thanks!

I wish I'd known this a week ago, but I'll keep it in mind for the next time I'm poking at Go :)

Re:A Rust Contributor Tries Their Hand at Go by johncch on Tuesday April 28, 2015 @01:37PM (#9453977)
I use gorename http://gopkgs.com/doc/pkg/gopkgs.com/gc/go.tools/cmd/gorenam...

and it works well with vim-go integration on vim for example

Re:A Rust Contributor Tries Their Hand at Go by blaenk on Wednesday April 29, 2015 @03:21AM (#9456876)
We should really think about getting something like this in rust/rustfmt. Syntax-level replacements sound pretty awesome.
Re:A Rust Contributor Tries Their Hand at Go by libria on Tuesday April 28, 2015 @02:41PM (#9454343)
This is why we need an IDE or Neovim + some epic plugins. Who's working on one?
Re:A Rust Contributor Tries Their Hand at Go by shazow on Tuesday April 28, 2015 @04:40PM (#9455015)
As far as vim goes, https://github.com/fatih/vim-go is the best all-in-one plugin. Really a pleasure to use and easy to install. Should work with neovim too.
Re:A Rust Contributor Tries Their Hand at Go by justinfx on Thursday April 30, 2015 @07:31AM (#9464381)
I've had a pull request in to add support for GoRename, to the GoSublime plugin for SublimeText. Works great.

https://github.com/DisposaBoy/GoSublime/pull/569

Re:A Rust Contributor Tries Their Hand at Go by GhotiFish on Tuesday April 28, 2015 @03:20PM (#9454533)
well neovim might not be ready to go, but vim-go is a very nice suite of tools for vim.
Re:A Rust Contributor Tries Their Hand at Go by EugeneOZ on Tuesday April 28, 2015 @04:29PM (#9454950)
Re:A Rust Contributor Tries Their Hand at Go by aikah on Tuesday April 28, 2015 @03:02PM (#9454453)
there is liteide already which does exactly that (right click on a symbol refactor->rename symbol under cursor)