cheatsheets/zig/Zig Programming Language.md

20 lines
254 B
Markdown

## Hello World example
```
const std = @import("std");
pub fn main() void {
std.debug.print("Hello World!", .{});
}
```
## Define array
```
.{69, 420}
```
## Importing a module
```
const [variable name of choosing] = @import("module name");
```