package fs
import "github.com/evanw/esbuild/internal/fs"
Index ¶
Functions ¶
func AfterFileClose ¶
func AfterFileClose()
func BeforeFileOpen ¶
func BeforeFileOpen()
Types ¶
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
func (*Entry) Kind ¶
func (*Entry) Symlink ¶
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, error) ReadFile(path string) (string, error) // 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 Cwd() string Rel(base string, target string) (string, bool) }
func MockFS ¶
func RealFS ¶
func RealFS() FS
Source Files ¶
- Version
- v0.6.28
- Published
- Aug 27, 2020
- Platform
- darwin/amd64
- Imports
- 7 packages
- Last checked
- 10 minutes ago –
Tools for package owners.