universal-lambda-example/src/main.zig

14 lines
359 B
Zig

const std = @import("std");
const universal_lambda = @import("universal_lambda_handler");
pub fn main() !void {
try universal_lambda.run(null, handler);
}
fn handler(allocator: std.mem.Allocator, event_data: []const u8, context: universal_lambda.Context) ![]const u8 {
_ = allocator;
_ = event_data;
_ = context;
return "hello world";
}