cheatsheets/zig/Zig Programming Language.md

21 lines
254 B
Markdown
Raw Permalink Normal View History

2024-09-28 10:17:52 +02:00
## 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");
```