Skip to content

Commit 56f5fe3

Browse files
committed
golang.org/x/tools => github.com/cowpaths/golang-x-tools
1 parent f2b6da1 commit 56f5fe3

File tree

811 files changed

+2430
-2510
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

811 files changed

+2430
-2510
lines changed

README.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Go Tools
22

3-
[![PkgGoDev](https://pkg.go.dev/badge/golang.org/x/tools)](https://pkg.go.dev/golang.org/x/tools)
3+
[![PkgGoDev](https://pkg.go.dev/badge/github.com/cowpaths/golang-x-tools)](https://pkg.go.dev/github.com/cowpaths/golang-x-tools)
44

5-
This repository provides the `golang.org/x/tools` module, comprising
5+
This repository provides the `github.com/cowpaths/golang-x-tools` module, comprising
66
various tools and packages mostly for static analysis of Go programs,
77
some of which are listed below.
88
Use the "Go reference" link above for more information about any package.
99

1010
It also contains the
11-
[`golang.org/x/tools/gopls`](https://pkg.go.dev/golang.org/x/tools/gopls)
11+
[`github.com/cowpaths/golang-x-tools/gopls`](https://pkg.go.dev/github.com/cowpaths/golang-x-tools/gopls)
1212
module, whose root package is a language-server protocol (LSP) server for Go.
1313
An LSP server analyses the source code of a project and
1414
responds to requests from a wide range of editors such as VSCode and
@@ -27,7 +27,7 @@ Selected commands:
2727
- `cmd/toolstash` is a utility to simplify working with multiple versions of the Go toolchain.
2828

2929
These commands may be fetched with a command such as
30-
`go install golang.org/x/tools/cmd/goimports@latest`.
30+
`go install github.com/cowpaths/golang-x-tools/cmd/goimports@latest`.
3131

3232
Selected packages:
3333

@@ -62,17 +62,17 @@ Numerous other packages provide more esoteric functionality.
6262

6363
<!-- Some that didn't make the cut:
6464
65-
golang.org/x/tools/benchmark/parse
66-
golang.org/x/tools/go/ast/astutil
67-
golang.org/x/tools/go/types/typeutil
68-
golang.org/x/tools/go/vcs
69-
golang.org/x/tools/godoc
70-
golang.org/x/tools/playground
71-
golang.org/x/tools/present
72-
golang.org/x/tools/refactor/importgraph
73-
golang.org/x/tools/refactor/rename
74-
golang.org/x/tools/refactor/satisfy
75-
golang.org/x/tools/txtar
65+
github.com/cowpaths/golang-x-tools/benchmark/parse
66+
github.com/cowpaths/golang-x-tools/go/ast/astutil
67+
github.com/cowpaths/golang-x-tools/go/types/typeutil
68+
github.com/cowpaths/golang-x-tools/go/vcs
69+
github.com/cowpaths/golang-x-tools/godoc
70+
github.com/cowpaths/golang-x-tools/playground
71+
github.com/cowpaths/golang-x-tools/present
72+
github.com/cowpaths/golang-x-tools/refactor/importgraph
73+
github.com/cowpaths/golang-x-tools/refactor/rename
74+
github.com/cowpaths/golang-x-tools/refactor/satisfy
75+
github.com/cowpaths/golang-x-tools/txtar
7676
7777
-->
7878

benchmark/parse/parse.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// Package parse provides support for parsing benchmark results as
66
// generated by 'go test -bench'.
7-
package parse // import "golang.org/x/tools/benchmark/parse"
7+
package parse // import "github.com/cowpaths/golang-x-tools/benchmark/parse"
88

99
import (
1010
"bufio"

blog/atom/atom.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Adapted from encoding/xml/read_test.go.
66

77
// Package atom defines XML data structures for an Atom feed.
8-
package atom // import "golang.org/x/tools/blog/atom"
8+
package atom // import "github.com/cowpaths/golang-x-tools/blog/atom"
99

1010
import (
1111
"encoding/xml"

blog/blog.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
// Package blog implements a web server for articles written in present format.
6-
package blog // import "golang.org/x/tools/blog"
6+
package blog // import "github.com/cowpaths/golang-x-tools/blog"
77

88
import (
99
"bytes"
@@ -20,8 +20,8 @@ import (
2020
"strings"
2121
"time"
2222

23-
"golang.org/x/tools/blog/atom"
24-
"golang.org/x/tools/present"
23+
"github.com/cowpaths/golang-x-tools/blog/atom"
24+
"github.com/cowpaths/golang-x-tools/present"
2525
)
2626

2727
var (

cmd/benchcmp/benchcmp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"strconv"
1313
"text/tabwriter"
1414

15-
"golang.org/x/tools/benchmark/parse"
15+
"github.com/cowpaths/golang-x-tools/benchmark/parse"
1616
)
1717

1818
var (

cmd/benchcmp/benchcmp_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"reflect"
99
"testing"
1010

11-
"golang.org/x/tools/benchmark/parse"
11+
"github.com/cowpaths/golang-x-tools/benchmark/parse"
1212
)
1313

1414
func TestSelectBest(t *testing.T) {

cmd/benchcmp/compare.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"fmt"
99
"math"
1010

11-
"golang.org/x/tools/benchmark/parse"
11+
"github.com/cowpaths/golang-x-tools/benchmark/parse"
1212
)
1313

1414
// BenchCmp is a pair of benchmarks.

cmd/benchcmp/compare_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"sort"
1111
"testing"
1212

13-
"golang.org/x/tools/benchmark/parse"
13+
"github.com/cowpaths/golang-x-tools/benchmark/parse"
1414
)
1515

1616
func TestDelta(t *testing.T) {

cmd/benchcmp/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ in a format like this:
3434
benchmark old bytes new bytes delta
3535
BenchmarkConcat 80 48 -40.00%
3636
*/
37-
package main // import "golang.org/x/tools/cmd/benchcmp"
37+
package main // import "github.com/cowpaths/golang-x-tools/cmd/benchcmp"

cmd/bundle/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ import (
8585
"strconv"
8686
"strings"
8787

88-
"golang.org/x/tools/go/packages"
88+
"github.com/cowpaths/golang-x-tools/go/packages"
8989
)
9090

9191
var (
@@ -231,7 +231,7 @@ func bundle(src, dst, dstpkg, prefix, buildTags string) ([]byte, error) {
231231
fmt.Fprintf(&out, "// +build %s\n\n", buildTags)
232232
}
233233

234-
fmt.Fprintf(&out, "// Code generated by golang.org/x/tools/cmd/bundle. DO NOT EDIT.\n")
234+
fmt.Fprintf(&out, "// Code generated by github.com/cowpaths/golang-x-tools/cmd/bundle. DO NOT EDIT.\n")
235235
if *outputFile != "" && buildTags == "" {
236236
fmt.Fprintf(&out, "//go:generate bundle %s\n", strings.Join(os.Args[1:], " "))
237237
} else {

cmd/bundle/main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"runtime"
1313
"testing"
1414

15-
"golang.org/x/tools/go/packages/packagestest"
15+
"github.com/cowpaths/golang-x-tools/go/packages/packagestest"
1616
)
1717

1818
func TestBundle(t *testing.T) { packagestest.TestAll(t, testBundle) }

cmd/bundle/testdata/out.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//go:build tag
22
// +build tag
33

4-
// Code generated by golang.org/x/tools/cmd/bundle. DO NOT EDIT.
4+
// Code generated by github.com/cowpaths/golang-x-tools/cmd/bundle. DO NOT EDIT.
55
// $ bundle
66

77
// The package doc comment

cmd/callgraph/main.go

+14-14
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// callgraph: a tool for reporting the call graph of a Go program.
66
// See Usage for details, or run with -help.
7-
package main // import "golang.org/x/tools/cmd/callgraph"
7+
package main // import "github.com/cowpaths/golang-x-tools/cmd/callgraph"
88

99
// TODO(adonovan):
1010
//
@@ -32,16 +32,16 @@ import (
3232
"runtime"
3333
"text/template"
3434

35-
"golang.org/x/tools/go/buildutil"
36-
"golang.org/x/tools/go/callgraph"
37-
"golang.org/x/tools/go/callgraph/cha"
38-
"golang.org/x/tools/go/callgraph/rta"
39-
"golang.org/x/tools/go/callgraph/static"
40-
"golang.org/x/tools/go/callgraph/vta"
41-
"golang.org/x/tools/go/packages"
42-
"golang.org/x/tools/go/pointer"
43-
"golang.org/x/tools/go/ssa"
44-
"golang.org/x/tools/go/ssa/ssautil"
35+
"github.com/cowpaths/golang-x-tools/go/buildutil"
36+
"github.com/cowpaths/golang-x-tools/go/callgraph"
37+
"github.com/cowpaths/golang-x-tools/go/callgraph/cha"
38+
"github.com/cowpaths/golang-x-tools/go/callgraph/rta"
39+
"github.com/cowpaths/golang-x-tools/go/callgraph/static"
40+
"github.com/cowpaths/golang-x-tools/go/callgraph/vta"
41+
"github.com/cowpaths/golang-x-tools/go/packages"
42+
"github.com/cowpaths/golang-x-tools/go/pointer"
43+
"github.com/cowpaths/golang-x-tools/go/ssa"
44+
"github.com/cowpaths/golang-x-tools/go/ssa/ssautil"
4545
)
4646

4747
// flags
@@ -91,7 +91,7 @@ Flags:
9191
One of:
9292
9393
digraph output suitable for input to
94-
golang.org/x/tools/cmd/digraph.
94+
github.com/cowpaths/golang-x-tools/cmd/digraph.
9595
graphviz output in AT&T GraphViz (.dot) format.
9696
9797
All other values are interpreted using text/template syntax.
@@ -140,8 +140,8 @@ Examples:
140140
141141
Show all functions directly called by the callgraph tool's main function:
142142
143-
callgraph -format=digraph golang.org/x/tools/cmd/callgraph |
144-
digraph succs golang.org/x/tools/cmd/callgraph.main
143+
callgraph -format=digraph github.com/cowpaths/golang-x-tools/cmd/callgraph |
144+
digraph succs github.com/cowpaths/golang-x-tools/cmd/callgraph.main
145145
`
146146

147147
func init() {

cmd/callgraph/main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"strings"
2020
"testing"
2121

22-
"golang.org/x/tools/internal/testenv"
22+
"github.com/cowpaths/golang-x-tools/internal/testenv"
2323
)
2424

2525
func init() {

cmd/cover/cover_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"path/filepath"
1919
"testing"
2020

21-
"golang.org/x/tools/internal/testenv"
21+
"github.com/cowpaths/golang-x-tools/internal/testenv"
2222
)
2323

2424
const (

cmd/cover/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ For usage information, please see:
2222
go help testflag
2323
go tool cover -help
2424
*/
25-
package main // import "golang.org/x/tools/cmd/cover"
25+
package main // import "github.com/cowpaths/golang-x-tools/cmd/cover"

cmd/cover/func.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"path/filepath"
1818
"text/tabwriter"
1919

20-
"golang.org/x/tools/cover"
20+
"github.com/cowpaths/golang-x-tools/cover"
2121
)
2222

2323
// funcOutput takes two file names as arguments, a coverage profile to read as input and an output

cmd/cover/html.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"path/filepath"
1818
"runtime"
1919

20-
"golang.org/x/tools/cover"
20+
"github.com/cowpaths/golang-x-tools/cover"
2121
)
2222

2323
// htmlOutput reads the profile data from profile and generates an HTML

cmd/digraph/digraph.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ Using digraph with existing Go tools:
7070
7171
Show the transitive closure of imports of the digraph tool itself:
7272
73-
$ go list -f '{{.ImportPath}} {{join .Imports " "}}' ... | digraph forward golang.org/x/tools/cmd/digraph
73+
$ go list -f '{{.ImportPath}} {{join .Imports " "}}' ... | digraph forward github.com/cowpaths/golang-x-tools/cmd/digraph
7474
7575
Show which clothes (see above) must be donned before a jacket:
7676
7777
$ digraph reverse jacket
7878
*/
79-
package main // import "golang.org/x/tools/cmd/digraph"
79+
package main // import "github.com/cowpaths/golang-x-tools/cmd/digraph"
8080

8181
// TODO(adonovan):
8282
// - support input files other than stdin

cmd/eg/eg.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
// The eg command performs example-based refactoring.
66
// For documentation, run the command, or see Help in
7-
// golang.org/x/tools/refactor/eg.
8-
package main // import "golang.org/x/tools/cmd/eg"
7+
// github.com/cowpaths/golang-x-tools/refactor/eg.
8+
package main // import "github.com/cowpaths/golang-x-tools/cmd/eg"
99

1010
import (
1111
"flag"
@@ -20,9 +20,9 @@ import (
2020
"path/filepath"
2121
"strings"
2222

23+
"github.com/cowpaths/golang-x-tools/go/packages"
24+
"github.com/cowpaths/golang-x-tools/refactor/eg"
2325
exec "golang.org/x/sys/execabs"
24-
"golang.org/x/tools/go/packages"
25-
"golang.org/x/tools/refactor/eg"
2626
)
2727

2828
var (

cmd/fiximports/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ The package... arguments specify a list of packages
111111
in the style of the go tool; see "go help packages".
112112
Hint: use "all" or "..." to match the entire workspace.
113113
114-
For details, see https://pkg.go.dev/golang.org/x/tools/cmd/fiximports
114+
For details, see https://pkg.go.dev/github.com/cowpaths/golang-x-tools/cmd/fiximports
115115
116116
Flags:
117117
-n: dry run: show changes, but don't apply them

cmd/fiximports/main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"strings"
1919
"testing"
2020

21-
"golang.org/x/tools/internal/testenv"
21+
"github.com/cowpaths/golang-x-tools/internal/testenv"
2222
)
2323

2424
// TODO(adonovan):

cmd/getgo/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ ENV SHELL /bin/bash
44
ENV HOME /root
55
WORKDIR $HOME
66

7-
COPY . /go/src/golang.org/x/tools/cmd/getgo
7+
COPY . /go/src/github.com/cowpaths/golang-x-tools/cmd/getgo
88

99
RUN ( \
10-
cd /go/src/golang.org/x/tools/cmd/getgo \
10+
cd /go/src/github.com/cowpaths/golang-x-tools/cmd/getgo \
1111
&& go build \
1212
&& mv getgo /usr/local/bin/getgo \
1313
)

cmd/godex/doc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
//
2222
// godex automatically tries all possible package path prefixes if only a
2323
// partial package path is given. For instance, for the path "go/types",
24-
// godex prepends "golang.org/x/tools".
24+
// godex prepends "github.com/cowpaths/golang-x-tools".
2525
//
2626
// The prefixes are computed by searching the directories specified by
2727
// the GOROOT and GOPATH environment variables (and by excluding the
@@ -62,7 +62,7 @@
6262
// (uncompiled) source code (not yet implemented)
6363
//
6464
// If no -s argument is provided, godex will try to find a matching source.
65-
package main // import "golang.org/x/tools/cmd/godex"
65+
package main // import "github.com/cowpaths/golang-x-tools/cmd/godex"
6666

6767
// BUG(gri): support for -s=source is not yet implemented
6868
// BUG(gri): gccgo-importing appears to have occasional problems stalling godex; try -s=gc as work-around

cmd/godoc/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ https://golang.org/doc/articles/godoc_documenting_go_code.html
110110
Deprecated: godoc cannot select what version of a package is displayed.
111111
Instead, use golang.org/x/pkgsite/cmd/pkgsite.
112112
*/
113-
package main // import "golang.org/x/tools/cmd/godoc"
113+
package main // import "github.com/cowpaths/golang-x-tools/cmd/godoc"

cmd/godoc/godoc_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"testing"
2121
"time"
2222

23-
"golang.org/x/tools/go/packages/packagestest"
24-
"golang.org/x/tools/internal/testenv"
23+
"github.com/cowpaths/golang-x-tools/go/packages/packagestest"
24+
"github.com/cowpaths/golang-x-tools/internal/testenv"
2525
)
2626

2727
// buildGodoc builds the godoc executable.

cmd/godoc/handlers.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import (
1111
"net/http"
1212
"text/template"
1313

14-
"golang.org/x/tools/godoc"
15-
"golang.org/x/tools/godoc/redirect"
16-
"golang.org/x/tools/godoc/vfs"
14+
"github.com/cowpaths/golang-x-tools/godoc"
15+
"github.com/cowpaths/golang-x-tools/godoc/redirect"
16+
"github.com/cowpaths/golang-x-tools/godoc/vfs"
1717

18-
_ "golang.org/x/tools/playground" // register "/compile" playground redirect
18+
_ "github.com/cowpaths/golang-x-tools/playground" // register "/compile" playground redirect
1919
)
2020

2121
var (

0 commit comments

Comments
 (0)