add zig (programming language)
This commit is contained in:
parent
7a9ddb910b
commit
929ae9001d
3 changed files with 47 additions and 9 deletions
20
zig/Zig Programming Language.md
Normal file
20
zig/Zig Programming Language.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
## 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");
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue