aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/encode.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2016-04-06 10:49:12 -0700
committerRobert Griesemer <gri@golang.org>2016-04-06 18:19:33 +0000
commitff7ba773f43bf04c34ffb6ed67da464072e476f7 (patch)
tree74c454b64ea5c6f4100fd32322be2463017ca10b /src/encoding/json/encode.go
parentd7ddee78ddca805e6609149ff4320b1547698259 (diff)
downloadgo-ff7ba773f43bf04c34ffb6ed67da464072e476f7.tar.xz
cmd/gofmt: make gofmt -s simplify slices in presence of dot-imports
A dot-import cannot possibly introduce a `len` function since that function would not be exported (it's lowercase). Furthermore, the existing code already (incorrectly) assumed that there was no other `len` function in another file of the package. Since this has been an ok assumption for years, let's leave it, but remove the dot-import restriction. Fixes #15153. Change-Id: I18fbb27acc5a5668833b4b4aead0cca540862b52 Reviewed-on: https://go-review.googlesource.com/21613 Reviewed-by: Alan Donovan <adonovan@google.com> Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions