File tree Expand file tree Collapse file tree 4 files changed +2
-18
lines changed Expand file tree Collapse file tree 4 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ type Exporter interface {
147
147
148
148
// All is the list of known exporters.
149
149
// This is used by TestAll to run tests with all the exporters.
150
- var All []Exporter
150
+ var All = []Exporter { GOPATH , Modules }
151
151
152
152
// TestAll invokes the testing function once for each exporter registered in
153
153
// the All global.
Original file line number Diff line number Diff line change @@ -41,10 +41,6 @@ import (
41
41
// /sometemporarydirectory/repoa/src
42
42
var GOPATH = gopath {}
43
43
44
- func init () {
45
- All = append (All , GOPATH )
46
- }
47
-
48
44
type gopath struct {}
49
45
50
46
func (gopath ) Name () string {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import (
18
18
)
19
19
20
20
// Modules is the exporter that produces module layouts.
21
- // Each "repository" is put in it's own module, and the module file generated
21
+ // Each "repository" is put in its own module, and the module file generated
22
22
// will have replace directives for all other modules.
23
23
// Given the two files
24
24
//
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments