diff --git a/src/day_template.zig b/src/day_template.zig new file mode 100644 index 0000000..1f2d021 --- /dev/null +++ b/src/day_template.zig @@ -0,0 +1,34 @@ +const aoc = @import("./aoc.zig"); +const std = @import("std"); +const Allocator = std.mem.Allocator; + +const Input = struct { + allocator: Allocator, + + fn deinit(self: Input) void { _ = self; } +}; + +fn parse_input(allocator: Allocator, lines: []const []const u8) !Input { + const parsed = Input { + .allocator = allocator, + }; + errdefer parsed.deinit(); + + _ = lines; + + return parsed; +} + +pub fn part1(input: *aoc.Input) !aoc.Result { + const parsed = try parse_input(input.allocator, input.lines); + defer parsed.deinit(); + + return .{ .uint = 0 }; +} + +pub fn part2(input: *aoc.Input) !aoc.Result { + const parsed = try parse_input(input.allocator, input.lines); + defer parsed.deinit(); + + return .{ .uint = 0 }; +}