Skip to content

Commit 945396e

Browse files
committed
godoc:vfs: extracted the vfs subpackage into an independent package
1 parent b752317 commit 945396e

38 files changed

+1446
-1280
lines changed

cmd/godoc/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
"golang.org/x/tools/godoc"
1515
"golang.org/x/tools/godoc/redirect"
16-
"golang.org/x/tools/godoc/vfs"
16+
"golang.org/x/tools/vfs"
1717

1818
_ "golang.org/x/tools/playground" // register "/compile" playground redirect
1919
)

cmd/godoc/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ import (
4141

4242
"golang.org/x/tools/godoc"
4343
"golang.org/x/tools/godoc/static"
44-
"golang.org/x/tools/godoc/vfs"
45-
"golang.org/x/tools/godoc/vfs/gatefs"
46-
"golang.org/x/tools/godoc/vfs/mapfs"
47-
"golang.org/x/tools/godoc/vfs/zipfs"
4844
"golang.org/x/tools/internal/gocommand"
45+
"golang.org/x/tools/vfs"
46+
"golang.org/x/tools/vfs/gatefs"
47+
"golang.org/x/tools/vfs/mapfs"
48+
"golang.org/x/tools/vfs/zipfs"
4949
)
5050

5151
const defaultAddr = "localhost:6060" // default webserver address

godoc/corpus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"golang.org/x/tools/godoc/analysis"
1313
"golang.org/x/tools/godoc/util"
14-
"golang.org/x/tools/godoc/vfs"
14+
"golang.org/x/tools/vfs"
1515
)
1616

1717
// A Corpus holds all the state related to serving and indexing a

godoc/dirtrees.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"sort"
1818
"strings"
1919

20-
"golang.org/x/tools/godoc/vfs"
20+
"golang.org/x/tools/vfs"
2121
)
2222

2323
// Conventional name for directories containing test data.

godoc/dirtrees_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"sort"
1212
"testing"
1313

14-
"golang.org/x/tools/godoc/vfs"
15-
"golang.org/x/tools/godoc/vfs/gatefs"
14+
"golang.org/x/tools/vfs"
15+
"golang.org/x/tools/vfs/gatefs"
1616
)
1717

1818
func TestNewDirTree(t *testing.T) {

godoc/index.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ import (
6464
"unicode"
6565

6666
"golang.org/x/tools/godoc/util"
67-
"golang.org/x/tools/godoc/vfs"
67+
"golang.org/x/tools/vfs"
6868
)
6969

7070
// ----------------------------------------------------------------------------

godoc/index_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"strings"
1212
"testing"
1313

14-
"golang.org/x/tools/godoc/vfs/mapfs"
14+
"golang.org/x/tools/vfs/mapfs"
1515
)
1616

1717
func newCorpus(t *testing.T) *Corpus {

godoc/meta.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"strings"
1515
"time"
1616

17-
"golang.org/x/tools/godoc/vfs"
17+
"golang.org/x/tools/vfs"
1818
)
1919

2020
var (

godoc/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"go/token"
1515
pathpkg "path"
1616

17-
"golang.org/x/tools/godoc/vfs"
17+
"golang.org/x/tools/vfs"
1818
)
1919

2020
var linePrefix = []byte("//line ")

godoc/pres.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"sync"
1111
"text/template"
1212

13-
"golang.org/x/tools/godoc/vfs/httpfs"
13+
"golang.org/x/tools/vfs/httpfs"
1414
)
1515

1616
// SearchResultFunc functions return an HTML body for displaying search results.

0 commit comments

Comments
 (0)