This file contains hidden or 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
const std = @import("std"); | |
const print = std.debug.print; | |
pub fn main() !void { | |
var gpa = std.heap.GeneralPurposeAllocator(.{}).init; | |
defer _ = gpa.deinit(); | |
const ally = gpa.allocator(); | |
print("isOnline = {}", .{try isOnline(ally)}); | |
} |
This file contains hidden or 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
//usr/bin/env zig run "$0" -- "$@"; exit | |
const std = @import("std"); | |
pub fn main() void { | |
std.debug.print("hello world", .{}); | |
} |