1const std = @import("std");
2
3pub fn main() !void {
4 std.debug.print("Hello, world!\n", .{});
5}
6
7pub fn add(a: i32, b: i32) i32 {
8 return a + b;
9}
10
11const Point = struct {
12 x: f32,
13 y: f32,
14
15 pub fn init(x: f32, y: f32) Point {
16 return Point{ .x = x, .y = y };
17 }
18};
19
20const Color = enum {
21 Red,
22 Green,
23 Blue,
24};
25
26const MyError = error{
27 BadStuff,
28};