LEVIATHAN vd52e79c4 · d52e79c486

Standard Library

namespace io

Console input and output: the program's standard output as an object.

since 0.1.0-alpha.1linuxwindows

Overview

io is a library: a file that prints imports it. use io::console; brings in the ready-made Console every program can print to, after which console.writeln(...) prints a line.

Examples

use io::console;

console.writeln("hello");
hello

Types

  • Console — The program's standard output as an object.

Constants and globals

console

const Console console = Console()

The process console: the one Console every program can print to, imported with use io::console;.

See also: Console