universal-lambda-example/src/main.zig

14 lines
363 B
Zig
Raw Normal View History

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