]> Cypherpunks repositories - gostls13.git/commit
go/*: use sort.Slice to simplify some code
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 12 Sep 2017 14:32:33 +0000 (16:32 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 12 Sep 2017 14:59:39 +0000 (14:59 +0000)
commit7377d0c7e972397969382315df915579e32db025
tree2c267f8f619f5e506fb52b70015d634a976514b4
parenteb2dc3d3d076f6924b4d25f89de267dc93066ea5
go/*: use sort.Slice to simplify some code

Skip the ones that have multiple uses for now. Also had to rename the
importComment variable as it shadowed the top-level func by the same
name.

Change-Id: I796285aa7b4fdf2c39e652666390427d37b063ee
Reviewed-on: https://go-review.googlesource.com/63150
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/go/ast/import.go
src/go/doc/example.go
src/go/types/methodset.go