On 15 July 2016 at 16:44, <dglas...@gmail.com> wrote: > On Thursday, July 14, 2016 at 10:34:36 PM UTC-7, bradfitz wrote: >> >> goimports has been updated. >> >> If you've been frustrated by its speed lately, run: >> >> $ go get -u golang.org/x/tools/cmd/goimports >> >> ... and things should be much nicer. >> >> Details at https://golang.org/cl/24941 > > > In addition to all the performance work, I'm excited to see: > >> * when adding imports, add names to imports when the imported package name >> > doesn't match the baes of its import path. For example: > import foo >> "example.net/foo/v1" > > if for no other reason than that godef works better with these imports > (https://github.com/rogpeppe/godef/issues/40).
FWIW that particular issue isn't usually a problem for the way that most people use godef (as an editor plugin), as it only affects you if you use it directly on the command line, something that I assume is fairly unusual. The more general import name problem in godef has been fixed for a little while now (unfortunately at some inevitable speed cost). cheers, rog. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.