godoc/util: remove FileSystem. It's in vfs now.
R=golang-dev, adg CC=golang-dev https://golang.org/cl/11555043
This commit is contained in:
parent
0160160d5e
commit
5b72c43fc0
|
@ -6,7 +6,6 @@
|
||||||
package util
|
package util
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io"
|
|
||||||
pathpkg "path"
|
pathpkg "path"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
@ -62,11 +61,6 @@ var textExt = map[string]bool{
|
||||||
".js": false, // must be served raw
|
".js": false, // must be served raw
|
||||||
}
|
}
|
||||||
|
|
||||||
// FileSystem is a minimal virtual filesystem.
|
|
||||||
type FileSystem interface {
|
|
||||||
Open(name string) (io.ReadCloser, error)
|
|
||||||
}
|
|
||||||
|
|
||||||
// IsTextFile returns whether the file has a known extension indicating
|
// IsTextFile returns whether the file has a known extension indicating
|
||||||
// a text file, or if a significant chunk of the specified file looks like
|
// a text file, or if a significant chunk of the specified file looks like
|
||||||
// correct UTF-8; that is, if it is likely that the file contains human-
|
// correct UTF-8; that is, if it is likely that the file contains human-
|
||||||
|
|
Loading…
Reference in New Issue