Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

js

main.js
const js = struct

File

lib/build-web/main.zig:25

Code

const js = struct {
    extern "core" fn log(ptr: [*]const u8, len: usize) void;
    extern "core" fn panic(ptr: [*]const u8, len: usize) noreturn;
    extern "core" fn timestamp() i64;
    extern "core" fn hello(
        steps_len: u32,
        status: abi.BuildStatus,
        time_report: bool,
    ) void;
    extern "core" fn updateBuildStatus(status: abi.BuildStatus) void;
    extern "core" fn updateStepStatus(step_idx: u32) void;
    extern "core" fn sendWsMessage(ptr: [*]const u8, len: usize) void;
}