zig-starter

API reference

On this page 7

Every declaration below is extracted from zig-starter's source, with the doc comments as written there. A declaration listed without prose is public but undocumented in the source.

StarterLib

const StarterLib = struct

Core library functionality (simple version without external dependencies)

Config

const Config = struct

init

fn init(allocator: std.mem.Allocator) !StarterLib

deinit

fn deinit(self: *StarterLib) void

processData

fn processData(self: *StarterLib, data: []const u8) ![]u8

Process data and return a copy

validateInput

fn validateInput(input: []const u8) !void

Example function with validation

ProcessError

const ProcessError = error