std/io
std/io provides:
WriterandReaderinterfaces- global streams
Stdin,Stdout,Stderr Bufferfor in-memory IO- helpers
Write,Read
import "std/io"
fn main() { io::Write(io::Stdout, "hello\n") catch panic "write failed"}std/io provides:
Writer and Reader interfacesStdin, Stdout, StderrBuffer for in-memory IOWrite, Readimport "std/io"
fn main() { io::Write(io::Stdout, "hello\n") catch panic "write failed"}