Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AfterFileClose ¶ added in v0.6.28
func AfterFileClose()
func BeforeFileOpen ¶ added in v0.6.28
func BeforeFileOpen()
Types ¶
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. IsAbs(path string) bool 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) }
Click to show internal directories.
Click to hide internal directories.