Documentation ¶ Index ¶ type Path func FS(fs fs.ReadDirFS, p string) Path func Local(p string) Path func Virtual(p string) Path Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Path ¶ type Path interface { fs.ReadDirFS OpenFile() (fs.File, error) Path() string Dir() Path } func FS ¶ func FS(fs fs.ReadDirFS, p string) Path FS returns a new path that is contained in the given filesystem. func Local ¶ func Local(p string) Path Local returns a new path that is contained in the local filesystem. func Virtual ¶ func Virtual(p string) Path Virtual returns a new path that does not actually exist. It is used in generated code to refer to source files that are no longer present during execution. Most operations on a virtual path will fail with fs.ErrNotExist. Source Files ¶ View all Source files vpath.go Click to show internal directories. Click to hide internal directories.