1
0
mirror of https://github.com/golang/go synced 2024-11-26 07:47:57 -07:00
go/src/fmt
Ian Lance Taylor b0b1d42db3 all: change from sort functions to slices functions where feasible
Doing this because the slices functions are slightly faster and
slightly easier to use. It also removes one dependency layer.

This CL does not change packages that are used during bootstrap,
as the bootstrap compiler does not have the required slices functions.
It does not change the go/scanner package because the ErrorList
Len, Swap, and Less methods are part of the Go 1 API.

Change-Id: If52899be791c829198e11d2408727720b91ebe8a
Reviewed-on: https://go-review.googlesource.com/c/go/+/587655
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-05-23 01:00:11 +00:00
..
doc.go fmt: add available godoc link 2024-04-02 21:56:20 +00:00
errors_test.go errors, fmt: add support for wrapping multiple errors 2022-09-29 18:40:40 +00:00
errors.go all: change from sort functions to slices functions where feasible 2024-05-23 01:00:11 +00:00
example_test.go
export_test.go
fmt_test.go fmt: allow padding and minus flags at the same time 2024-03-04 17:31:55 +00:00
format.go fmt: allow padding and minus flags at the same time 2024-03-04 17:31:55 +00:00
gostringer_example_test.go
print.go fmt, internal/fmtsort: refactor SortedMap to use slice of structs for map sorting 2024-05-13 21:22:43 +00:00
scan_test.go fmt,math/big,net/url: fixes to old Benchmarks 2023-05-23 20:25:13 +00:00
scan.go fmt: add available godoc link 2024-04-02 21:56:20 +00:00
state_test.go fmt: add a function to recover the original format string given a State 2022-08-06 09:19:31 +00:00
stringer_example_test.go
stringer_test.go