]> Cypherpunks repositories - gostls13.git/commitdiff
all: go fmt
authorMichael Pratt <mpratt@google.com>
Tue, 22 Jul 2025 15:17:06 +0000 (11:17 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 22 Jul 2025 16:16:26 +0000 (09:16 -0700)
Change-Id: I6a6a636c341d4ba3518be7f6806093bbdff11c88
Reviewed-on: https://go-review.googlesource.com/c/go/+/689535
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/internal/cgrouptest/cgrouptest_linux.go
src/internal/runtime/strconv/atoi.go
src/internal/runtime/strconv/atoi_test.go
src/runtime/debug.go
src/unicode/utf8/utf8.go

index f23c37a705b56c1f6d9f9b76be2e775fb1dd1545..8437f992f741f4207829420c757d2af185b7e5f7 100644 (file)
@@ -114,7 +114,7 @@ func findCurrent(t *testing.T) (string, string) {
        if ver != cgroup.V2 {
                t.Skipf("cgroup: running on cgroup v%d want v2", ver)
        }
-       rel := string(buf[1:n]) // The returned path always starts with /, skip it.
+       rel := string(buf[1:n])       // The returned path always starts with /, skip it.
        rel = filepath.Join(".", rel) // Make sure this isn't empty string at root.
        return mount, rel
 }
index 87b3faf6d5c93de016e64f1da7671d4aed41136d..0308757c6f7b31c22bd0f562454ad6780e8d7fc7 100644 (file)
@@ -73,4 +73,3 @@ func Atoi32(s string) (int32, bool) {
        }
        return 0, false
 }
-
index 49cd6f160ab4a3594298e8db92e5de3493c0ff4c..71a8030b1d03fc1c5f9cf37e78651cac69455e07 100644 (file)
@@ -102,4 +102,3 @@ func TestAtoi32(t *testing.T) {
                }
        }
 }
-
index 206cf39f02a2bbc2747b383fda1590553c61c3fe..dacadd2721ffa27079dc016ef4b127d1d438eb1b 100644 (file)
@@ -19,10 +19,10 @@ import (
 // GOMAXPROCS defaults to that value.
 //
 // Otherwise, the Go runtime selects an appropriate default value from a combination of
-//  - the number of logical CPUs on the machine,
-//  - the process’s CPU affinity mask,
-//  - and, on Linux, the process’s average CPU throughput limit based on cgroup CPU
-//    quota, if any.
+//   - the number of logical CPUs on the machine,
+//   - the process’s CPU affinity mask,
+//   - and, on Linux, the process’s average CPU throughput limit based on cgroup CPU
+//     quota, if any.
 //
 // If GODEBUG=containermaxprocs=0 is set and GOMAXPROCS is not set by the
 // environment variable, then GOMAXPROCS instead defaults to the value of
index 82fa7c0d4d39d46d07f33634ca1fd2bed644d7eb..3be2f15e8a2416640f44ac88dcb240e215dc7ea9 100644 (file)
@@ -263,7 +263,7 @@ func DecodeLastRune(p []byte) (r rune, size int) {
        // guard against O(n^2) behavior when traversing
        // backwards through strings with long sequences of
        // invalid UTF-8.
-       lim := max(end - UTFMax, 0)
+       lim := max(end-UTFMax, 0)
        for start--; start >= lim; start-- {
                if RuneStart(p[start]) {
                        break
@@ -300,7 +300,7 @@ func DecodeLastRuneInString(s string) (r rune, size int) {
        // guard against O(n^2) behavior when traversing
        // backwards through strings with long sequences of
        // invalid UTF-8.
-       lim := max(end - UTFMax, 0)
+       lim := max(end-UTFMax, 0)
        for start--; start >= lim; start-- {
                if RuneStart(s[start]) {
                        break