all: run gofmt

Fixes #44980

Change-Id: Icef35319d1582d8367c8911e15d11b0224957327
GitHub-Last-Rev: 2113e97e83
GitHub-Pull-Request: golang/go#45005
Reviewed-on: https://go-review.googlesource.com/c/go/+/301632
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
Prajwal Koirala 2021-03-15 06:13:23 +00:00 committed by Ian Lance Taylor
parent e61c9ddb7f
commit de2b27dee7
8 changed files with 47 additions and 48 deletions

View file

@ -15,7 +15,7 @@ import (
var t p.T var t p.T
type I interface { M() } type I interface{ M() }
func main() { func main() {
pl, err := plugin.Open("method2.so") pl, err := plugin.Open("method2.so")

View file

@ -15,8 +15,8 @@
package main package main
import ( import (
"os"
exec "internal/execabs" exec "internal/execabs"
"os"
"strings" "strings"
) )

View file

@ -22,10 +22,10 @@ import (
"bytes" "bytes"
"flag" "flag"
"fmt" "fmt"
exec "internal/execabs"
"io/fs" "io/fs"
"log" "log"
"os" "os"
exec "internal/execabs"
"path/filepath" "path/filepath"
"strings" "strings"

View file

@ -1538,7 +1538,6 @@ func (ctxt *Link) doelf() {
addgonote(ctxt, ".note.go.buildid", ELF_NOTE_GOBUILDID_TAG, []byte(*flagBuildid)) addgonote(ctxt, ".note.go.buildid", ELF_NOTE_GOBUILDID_TAG, []byte(*flagBuildid))
} }
//type mipsGnuAttributes struct { //type mipsGnuAttributes struct {
// version uint8 // 'A' // version uint8 // 'A'
// length uint32 // 15 including itself // length uint32 // 15 including itself

View file

@ -14,7 +14,7 @@ type S int
func (s S) M() { println("S.M") } func (s S) M() { println("S.M") }
type I interface { M() } type I interface{ M() }
type T float64 type T float64