24 lines
428 B
Go
24 lines
428 B
Go
package installer
|
|
|
|
// "A little copying is better than a little dependency"
|
|
// These are here so that we don't need a dependency on http.FileSystem and http.File
|
|
|
|
import (
|
|
"io"
|
|
"os"
|
|
)
|
|
|
|
// Same as http.FileSystem
|
|
type FileSystem interface {
|
|
Open(name string) (File, error)
|
|
}
|
|
|
|
// Same as http.File
|
|
type File interface {
|
|
io.Closer
|
|
io.Reader
|
|
io.Seeker
|
|
Readdir(count int) ([]os.FileInfo, error)
|
|
Stat() (os.FileInfo, error)
|
|
}
|