Skip to content

Commit e3815af

Browse files
twpaynemvdan
authored andcommitted
all: run gofmt -w .
1 parent e167c88 commit e3815af

File tree

8 files changed

+25
-32
lines changed

8 files changed

+25
-32
lines changed

cmd/txtar-c/savedir.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
// See https://godoc.org/github.com/rogpeppe/go-internal/txtar for details of the format
1212
// and how to parse a txtar file.
13-
//
1413
package main
1514

1615
import (

cmd/txtar-goproxy/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
// This allows interactive experimentation with the set of proxied modules.
99
// For example:
1010
//
11-
// cd cmd/go
12-
// go test -proxy=localhost:1234 &
13-
// export GOPROXY=http://localhost:1234/mod
11+
// cd cmd/go
12+
// go test -proxy=localhost:1234 &
13+
// export GOPROXY=http://localhost:1234/mod
1414
//
1515
// and then run go commands as usual.
1616
package main

cmd/txtar-x/extract.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
// See https://godoc.org/github.com/rogpeppe/go-internal/txtar for details of the format
1212
// and how to parse a txtar file.
13-
//
1413
package main
1514

1615
import (

fmtsort/sort.go

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,18 @@ func (o *SortedMap) Swap(i, j int) {
3636
//
3737
// The ordering rules are more general than with Go's < operator:
3838
//
39-
// - when applicable, nil compares low
40-
// - ints, floats, and strings order by <
41-
// - NaN compares less than non-NaN floats
42-
// - bool compares false before true
43-
// - complex compares real, then imag
44-
// - pointers compare by machine address
45-
// - channel values compare by machine address
46-
// - structs compare each field in turn
47-
// - arrays compare each element in turn.
48-
// Otherwise identical arrays compare by length.
49-
// - interface values compare first by reflect.Type describing the concrete type
50-
// and then by concrete value as described in the previous rules.
51-
//
39+
// - when applicable, nil compares low
40+
// - ints, floats, and strings order by <
41+
// - NaN compares less than non-NaN floats
42+
// - bool compares false before true
43+
// - complex compares real, then imag
44+
// - pointers compare by machine address
45+
// - channel values compare by machine address
46+
// - structs compare each field in turn
47+
// - arrays compare each element in turn.
48+
// Otherwise identical arrays compare by length.
49+
// - interface values compare first by reflect.Type describing the concrete type
50+
// and then by concrete value as described in the previous rules.
5251
func Sort(mapValue reflect.Value) *SortedMap {
5352
if mapValue.Type().Kind() != reflect.Map {
5453
return nil

imports/build.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ var slashslash = []byte("//")
3232
// the purpose of satisfying build tags, in order to estimate
3333
// (conservatively) whether a file could ever possibly be used
3434
// in any build.
35-
//
3635
func ShouldBuild(content []byte, tags map[string]bool) bool {
3736
// Pass 1. Identify leading run of // comments and blank lines,
3837
// which must be followed by a blank line.
@@ -96,7 +95,6 @@ func ShouldBuild(content []byte, tags map[string]bool) bool {
9695
// tag (if tags[tag] is true)
9796
// !tag (if tags[tag] is false)
9897
// a comma-separated list of any of these
99-
//
10098
func matchTags(name string, tags map[string]bool) bool {
10199
if name == "" {
102100
return false
@@ -145,12 +143,12 @@ func matchTag(name string, tags map[string]bool, want bool) bool {
145143
// suffix which does not match the current system.
146144
// The recognized name formats are:
147145
//
148-
// name_$(GOOS).*
149-
// name_$(GOARCH).*
150-
// name_$(GOOS)_$(GOARCH).*
151-
// name_$(GOOS)_test.*
152-
// name_$(GOARCH)_test.*
153-
// name_$(GOOS)_$(GOARCH)_test.*
146+
// name_$(GOOS).*
147+
// name_$(GOARCH).*
148+
// name_$(GOOS)_$(GOARCH).*
149+
// name_$(GOOS)_test.*
150+
// name_$(GOARCH)_test.*
151+
// name_$(GOOS)_$(GOARCH)_test.*
154152
//
155153
// An exception: if GOOS=android, then files with GOOS=linux are also matched.
156154
//

internal/syscall/windows/registry/key.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
//
2424
// NOTE: This package is a copy of golang.org/x/sys/windows/registry
2525
// with KeyInfo.ModTime removed to prevent dependency cycles.
26-
//
2726
package registry
2827

2928
import (

modfile/read.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ func (x *Line) Span() (start, end Position) {
244244
// "x"
245245
// "y"
246246
// )
247-
//
248247
type LineBlock struct {
249248
Comments
250249
Start Position

testenv/testenv.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func Builder() string {
3030
return os.Getenv("GO_BUILDER_NAME")
3131
}
3232

33-
// HasGoBuild reports whether the current system can build programs with ``go build''
33+
// HasGoBuild reports whether the current system can build programs with go build
3434
// and then run them with os.StartProcess or exec.Command.
3535
func HasGoBuild() bool {
3636
if os.Getenv("GO_GCFLAGS") != "" {
@@ -51,7 +51,7 @@ func HasGoBuild() bool {
5151
return true
5252
}
5353

54-
// MustHaveGoBuild checks that the current system can build programs with ``go build''
54+
// MustHaveGoBuild checks that the current system can build programs with go build
5555
// and then run them with os.StartProcess or exec.Command.
5656
// If not, MustHaveGoBuild calls t.Skip with an explanation.
5757
func MustHaveGoBuild(t testing.TB) {
@@ -63,13 +63,13 @@ func MustHaveGoBuild(t testing.TB) {
6363
}
6464
}
6565

66-
// HasGoRun reports whether the current system can run programs with ``go run.''
66+
// HasGoRun reports whether the current system can run programs with go run.
6767
func HasGoRun() bool {
6868
// For now, having go run and having go build are the same.
6969
return HasGoBuild()
7070
}
7171

72-
// MustHaveGoRun checks that the current system can run programs with ``go run.''
72+
// MustHaveGoRun checks that the current system can run programs with go run.
7373
// If not, MustHaveGoRun calls t.Skip with an explanation.
7474
func MustHaveGoRun(t testing.TB) {
7575
if !HasGoRun() {

0 commit comments

Comments
 (0)