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

You can do it using gofmt, by writing

gofmt -w -r '"github.com/abc/def" -> "github.com/abc/def/v2"' .

That won't do subpackages though.



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

Search: