format module

Maylang standard-library module.

import "format" as format;

Functions

format_percent

may
fun format_percent(value: Float, digits: Int) -> Str

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

format_bytes

may
fun format_bytes(n: Int) -> Str

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

format_duration

may
fun format_duration(seconds: Int) -> Str

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

format_row

may
fun format_row(cells: List<Str>, widths: List<Int>) -> Str

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

format_table

may
fun format_table<T>(headers: List<Str>, rows: List<List<T>>) -> Str

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

format_kv

may
fun format_kv<V>(data: Map<Str, V>, width: Int) -> Str

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

format_ansi

may
fun format_ansi(text: Str, code: Int) -> Str

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

format_bold

may
fun format_bold(text: Str) -> Str

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

format_dim

may
fun format_dim(text: Str) -> Str

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

format_color

may
fun format_color(text: Str, color: Int) -> Str

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source