Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not really. Go comes with code rewriting tools, unsurprisingly since they were used to update the standard library and 3rd party code when the language changed before Go 1.

I don't want to use a language that doesn't come with a parser in the standard library anymore.



So, is it possible to move/rename class/method/field smoothly using those tools? Extract code block to new method?


the gofmt tool has a replacement feature:

`gofmt -r 'InitialName -> FinalName'`


Documentation looks quite incomplete(http://golang.org/cmd/gofmt/). Will it change all imports and usages of class/method/field? Will it resolve all signature polymorphic calls?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: