Skip to content

Instantly share code, notes, and snippets.

@blueStruct
blueStruct / check-online.zig
Last active July 8, 2025 21:23
zig check online
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)});
}
//usr/bin/env zig run "$0" -- "$@"; exit
const std = @import("std");
pub fn main() void {
std.debug.print("hello world", .{});
}