vpath

package
v0.0.0-...-6d0822f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL