package fs
import "github.com/evanw/esbuild/internal/fs"
Index ¶
Types ¶
type Entry ¶
type EntryKind ¶
type EntryKind uint8
type FS ¶
type FS interface { // The returned map is immutable and is cached across invocations. Do not // mutate it. ReadDirectory(path string) map[string]Entry ReadFile(path string) (string, bool) // This is part of the interface because the mock interface used for tests // should not depend on file system behavior (i.e. different slashes for // Windows) while the real interface should. Abs(path string) (string, bool) Dir(path string) string Base(path string) string Ext(path string) string Join(parts ...string) string RelativeToCwd(path string) (string, bool) }
func MockFS ¶
func RealFS ¶
func RealFS() FS
Source Files ¶
- Version
- v0.5.5
- Published
- Jun 20, 2020
- Platform
- windows/amd64
- Imports
- 5 packages
- Last checked
- 4 hours ago –
Tools for package owners.