std/io
Module for terminal I/O and panic/printf interop helpers.
import "std/io";
fun main() {
print("Name: ");
let name = input();
println(name.c_str());
}
Key APIs:
- println
- input
- panic
- printf
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Module for terminal I/O and panic/printf interop helpers.
import "std/io";
fun main() {
print("Name: ");
let name = input();
println(name.c_str());
}
Key APIs: