1
0
mirror of https://github.com/golang/go synced 2024-11-18 11:04:42 -07:00

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:
Brad Fitzpatrick 2013-07-19 11:54:15 +10:00
parent 0160160d5e
commit 5b72c43fc0

View File

@ -6,7 +6,6 @@
package util
import (
"io"
pathpkg "path"
"sync"
"time"
@ -62,11 +61,6 @@ var textExt = map[string]bool{
".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
// 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-