Skip to main content

read_text

Function read_text 

Source
pub fn read_text(
    ctx: &GateCtx,
    relative: impl AsRef<Utf8Path>,
) -> Result<String, GateError>
Expand description

Read a repository-relative text file for a gate.

ยงErrors

GateError::Io naming the path when the file cannot be read.