package fs

Import Path
	github.com/evanw/esbuild/internal/fs (on go.dev)

Dependency Relation
	imports 11 packages, and imported by 4 packages


Package-Level Type Names (total 15, in which 8 are exported)
/* sort exporteds by: | */
Actual string Dir string Query string func DirEntries.Get(query string) (*Entry, *DifferentCase)
( T) Get(query string) (*Entry, *DifferentCase) ( T) UnorderedKeys() (keys []string) func FS.ReadDirectory(path string) (DirEntries, error)
(*T) Kind(fs FS) EntryKind (*T) Symlink(fs FS) string func DirEntries.Get(query string) (*Entry, *DifferentCase)
func (*Entry).Kind(fs FS) EntryKind const DirEntry const FileEntry
( T) Abs(path string) (string, bool) ( T) Base(path string) string ( T) Cwd() string ( T) Dir(path string) string ( T) Ext(path string) string 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. ( T) Join(parts ...string) string This is a key made from the information returned by "stat". It is intended to be different if the file has been edited, and to otherwise be equal if the file has not been edited. It should usually work, but no guarantees. See https://apenwarr.ca/log/20181113 for more information about why this can be broken. For example, writing to a file with mmap on WSL on Windows won't change this key. Hopefully this isn't too much of an issue. Additional reading: - https://github.com/npm/npm/pull/20027 - https://github.com/golang/go/commit/7dea509703eb5ad66a35628b12a678110fbb1f72 The returned map is immutable and is cached across invocations. Do not mutate it. ( T) ReadFile(path string) (string, error) ( T) Rel(base string, target string) (string, bool) This is a set of all files used and all directories checked. The build must be invalidated if any of these watched files change. func MockFS(input map[string]string) FS func RealFS(options RealFSOptions) (FS, error) func (*Entry).Kind(fs FS) EntryKind func (*Entry).Symlink(fs FS) string func github.com/evanw/esbuild/internal/bundler.ScanBundle(log logger.Log, fs FS, res resolver.Resolver, caches *cache.CacheSet, entryPoints []string, options config.Options) bundler.Bundle func github.com/evanw/esbuild/internal/cache.(*FSCache).ReadFile(fs FS, path string) (string, error) func github.com/evanw/esbuild/internal/resolver.NewResolver(fs FS, log logger.Log, caches *cache.CacheSet, options config.Options) resolver.Resolver
func FS.ModKey(path string) (ModKey, error)
AbsWorkingDir string DoNotCache bool WantWatchData bool func RealFS(options RealFSOptions) (FS, error)
These functions return true if the file system entry has been modified func FS.WatchData() WatchData
Package-Level Functions (total 10, in which 5 are exported)
func MockFS(input map[string]string) FS
Package-Level Variables (total 3, none are exported)
Package-Level Constants (total 10, in which 2 are exported)