DoxigAlpha

formatMessage

Function parameters

Parameters

#
self:[]const u8
w:*std.Io.Writer

Configuration for the runtime parser.

Types

#
Options
Configuration for the runtime parser.
Diagnostics
Information about the success or failure of a parse.

Parses the given slice as ZON.

Functions

#
fromSlice
Parses the given slice as ZON.
fromZoir
Like `fromSlice`, but operates on `Zoir` instead of ZON source.
fromZoirNode
Like `fromZoir`, but the parse starts on `node` instead of root.
free
Frees ZON values.

Source

Implementation

#
fn formatMessage(self: []const u8, w: *std.Io.Writer) std.Io.Writer.Error!void {
    // Just writes the string for now, but we're keeping this behind a formatter so we have
    // the option to extend it in the future to print more advanced messages (like `Error`
    // does) without breaking the API.
    try w.writeAll(self);
}