Struct go_engine::SourceReader
source · pub struct SourceReader { /* private fields */ }Implementations§
source§impl SourceReader
impl SourceReader
pub fn new( base_dir: Option<PathBuf>, working_dir: PathBuf, vfs: Box<dyn VirtualFs> ) -> SourceReader
sourcepub fn local_fs(base_dir: PathBuf, working_dir: PathBuf) -> SourceReader
pub fn local_fs(base_dir: PathBuf, working_dir: PathBuf) -> SourceReader
Create a SourceReader that reads from local file system.
sourcepub fn fs_lib_and_string(
base_dir: PathBuf,
source: Cow<'static, str>
) -> (SourceReader, PathBuf)
pub fn fs_lib_and_string( base_dir: PathBuf, source: Cow<'static, str> ) -> (SourceReader, PathBuf)
Create a SourceReader that reads from a zip file and a string.