diff options
| author | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2023-12-06 03:27:00 +0200 |
|---|---|---|
| committer | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2025-10-28 23:20:45 +0200 |
| commit | 76ba3711e9a131dbc71bdfc8b0ab20186fb08087 (patch) | |
| tree | dcfcf73dfeeb1a47d13dd10cb8e54ef2a4d00515 /template.zig | |
| parent | removing inputs (diff) | |
| download | aoc23-76ba3711e9a131dbc71bdfc8b0ab20186fb08087.tar.gz aoc23-76ba3711e9a131dbc71bdfc8b0ab20186fb08087.zip | |
create template file and update init script
Diffstat (limited to 'template.zig')
| -rw-r--r-- | template.zig | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/template.zig b/template.zig new file mode 100644 index 0000000..059a120 --- /dev/null +++ b/template.zig | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | const std = @import("std"); | ||
| 2 | const print = std.debug.print; | ||
| 3 | const assert = std.debug.assert; | ||
| 4 | const ArrayList = std.ArrayList; | ||
| 5 | const HashMap = std.HashMap; | ||
| 6 | const mem = std.mem; | ||
| 7 | |||
| 8 | const fin = mem.trim(u8, @embedFile("./input.txt"), &std.ascii.whitespace); | ||
| 9 | var gpa = std.heap.GeneralPurposeAllocator(.{}){}; | ||
| 10 | const allocator = gpa.allocator(); | ||
| 11 | |||
| 12 | pub fn part1() void { | ||
| 13 | // Part 1 goes here | ||
| 14 | } | ||
| 15 | |||
| 16 | pub fn part2() void { | ||
| 17 | // Part 2 goes here | ||
| 18 | } | ||
| 19 | |||
| 20 | pub fn main() !void { | ||
| 21 | part1(); | ||
| 22 | part2(); | ||
| 23 | } | ||
