forked from ziglang/www.ziglang.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48aa6c7
commit 4013a28
Showing
219 changed files
with
5,303 additions
and
18,957 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
zig-cache/ | ||
.zig-cache/ | ||
zig-out/ | ||
/resources | ||
doctest-* | ||
/public |
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<div class="monetary-logos"> | ||
<a href="https://pex.com" rel="noopener nofollow" target="_blank"> | ||
<picture> | ||
<source | ||
srcset="/sponsors/pex-white.svg" | ||
media="(prefers-color-scheme: dark)" | ||
> | ||
<img src="/sponsors/pex-dark.svg"> | ||
</picture> | ||
</a> | ||
<a href="https://coil.com" rel="noopener nofollow" target="_blank"> | ||
<picture> | ||
<source | ||
srcset="/sponsors/coil-logo-white.svg" | ||
media="(prefers-color-scheme: dark)" | ||
><img src="/sponsors/coil-logo-black.svg"> | ||
</picture> | ||
</a> | ||
<a href="https://tigerbeetle.com" rel="noopener nofollow" target="_blank" class="span2"> | ||
<picture> | ||
<source | ||
srcset="/sponsors/tb-logo-white.png" | ||
media="(prefers-color-scheme: dark)" | ||
><img src="/sponsors/tb-logo-black.png"> | ||
</picture> | ||
</a> | ||
<a href="https://shiguredo.jp" rel="noopener nofollow" target="_blank"> | ||
<picture> | ||
<source | ||
srcset="/sponsors/shiguredo-logo-dark.svg" | ||
media="(prefers-color-scheme: dark)" | ||
><img src="/sponsors/shiguredo-logo-light.svg"> | ||
</picture> | ||
</a> | ||
<a href="https://blacksmith.sh/" rel="noopener nofollow" target="_blank"> | ||
<picture> | ||
<source | ||
srcset="/sponsors/Blacksmith_Logo-White.svg" | ||
media="(prefers-color-scheme: dark)" | ||
><img src="/sponsors/Blacksmith_Logo-Black.svg"> | ||
</picture> | ||
</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// zig-doctest: syntax --name hello | ||
const std = @import("std"); | ||
|
||
pub fn main() !void { | ||
std.debug.print("Hello World!\n", .{}); | ||
} | ||
|
||
// syntax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// zig-doctest: syntax --name hello | ||
const std = @import("std"); | ||
|
||
pub fn main() !void { | ||
std.debug.print("Hello World!\n", .{}); | ||
} | ||
|
||
// syntax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
// zig-doctest: syntax --name main | ||
const std = @import("std"); | ||
const word = @embedFile("word"); | ||
|
||
pub fn main() !void { | ||
try std.io.getStdOut().writer().print("Hello {s}\n", .{word}); | ||
} | ||
|
||
// syntax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
// zig-doctest: syntax --name main | ||
const std = @import("std"); | ||
const Person = @import("person").Person; | ||
|
||
pub fn main() !void { | ||
const p: Person = .{}; | ||
try std.io.getStdOut().writer().print("Hello {any}\n", .{p}); | ||
} | ||
|
||
// syntax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
assets/zig-code/build-system/2-user-provided-options/example.zig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// zig-doctest: syntax --name example | ||
const std = @import("std"); | ||
|
||
pub fn main() !void { | ||
std.debug.print("Hello World!\n", .{}); | ||
} | ||
|
||
// syntax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
assets/zig-code/build-system/3-standard-config-options/hello.zig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// zig-doctest: syntax --name hello | ||
const std = @import("std"); | ||
|
||
pub fn main() !void { | ||
std.debug.print("Hello World!\n", .{}); | ||
} | ||
|
||
// syntax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.