]> Cypherpunks repositories - gostls13.git/commitdiff
all: gofmt -w
authorJes Cok <xigua67damn@gmail.com>
Sat, 22 Feb 2025 12:37:00 +0000 (12:37 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 25 Feb 2025 19:49:16 +0000 (11:49 -0800)
Change-Id: Ie30a780cbd98bab1e80035b3dfddf92eb281759e
GitHub-Last-Rev: 369ada24ffc297efb47768e430b1bd0216706998
GitHub-Pull-Request: golang/go#71898
Reviewed-on: https://go-review.googlesource.com/c/go/+/651795
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Rob Pike <r@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/internal/routebsd/interface.go
src/syscall/exec_linux.go
src/text/template/exec_test.go

index 1ec415547f11c045dd54dc1c163ccf7c74813e54..c517a388100938c58c4d375f517159bc046bdfdd 100644 (file)
@@ -44,6 +44,6 @@ type InterfaceMulticastAddrMessage struct {
 
 // Implement the Message interface.
 
-func (InterfaceMessage) message() {}
-func (InterfaceAddrMessage) message() {}
+func (InterfaceMessage) message()              {}
+func (InterfaceAddrMessage) message()          {}
 func (InterfaceMulticastAddrMessage) message() {}
index 98151d34ac5578b271e63e2e66b38b0998dcf76b..678bc84796ac5b7b38f6856b8f2dd64ce3859c68 100644 (file)
@@ -802,7 +802,7 @@ func os_checkClonePidfd() error {
 
        for {
                const _P_PIDFD = 3
-               _, _, errno = Syscall6(SYS_WAITID, _P_PIDFD, uintptr(pidfd), 0, WEXITED | WCLONE, 0, 0)
+               _, _, errno = Syscall6(SYS_WAITID, _P_PIDFD, uintptr(pidfd), 0, WEXITED|WCLONE, 0, 0)
                if errno != EINTR {
                        break
                }
index 0a0be43baa4f49d92e83b9d117767efcfa98ba1b..65440901a0b4ecd82ef090bd867284b0bf57066d 100644 (file)
@@ -72,11 +72,11 @@ type T struct {
        Str fmt.Stringer
        Err error
        // Pointers
-       PI  *int
-       PS  *string
-       PSI *[]int
-       NIL *int
-       UPI unsafe.Pointer
+       PI       *int
+       PS       *string
+       PSI      *[]int
+       NIL      *int
+       UPI      unsafe.Pointer
        EmptyUPI unsafe.Pointer
        // Function (not method)
        BinaryFunc             func(string, string) string
@@ -1508,8 +1508,8 @@ func TestBadFuncNames(t *testing.T) {
 func TestIsTrue(t *testing.T) {
        var nil_ptr *int
        var nil_chan chan int
-       tests := []struct{
-               v any
+       tests := []struct {
+               v    any
                want bool
        }{
                {1, true},
@@ -1522,12 +1522,12 @@ func TestIsTrue(t *testing.T) {
                {complex64(0.0), false},
                {true, true},
                {false, false},
-               {[2]int{1,2}, true},
+               {[2]int{1, 2}, true},
                {[0]int{}, false},
                {[]byte("abc"), true},
                {[]byte(""), false},
-               {map[string] int {"a": 1, "b": 2}, true},
-               {map[string] int {}, false},
+               {map[string]int{"a": 1, "b": 2}, true},
+               {map[string]int{}, false},
                {make(chan int), true},
                {nil_chan, false},
                {new(int), true},