mirror of
https://github.com/golang/go
synced 2024-11-18 13:24:39 -07:00
57d2ff39c7
AddImport and AddNamedImport attempt to place new imports in roughly the correct place--and thus the correct group--by matching prefixes. Matching prefixes byte-by-byte led to "regexp" being grouped with "rsc.io/p". Instead, match prefixes by segments. Fixes golang/go#9961. Change-Id: I52b7c58a9a2fbe85c2b5297e50c87d409364bda3 Reviewed-on: https://go-review.googlesource.com/8090 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> |
||
---|---|---|
.. | ||
fix_test.go | ||
fix.go | ||
imports.go | ||
mkindex.go | ||
mkstdlib.go | ||
sortimports_compat.go | ||
sortimports.go | ||
zstdlib.go |