const std = @import("std");
const stdout = std.io.getStdOut().writer();
pub const User = struct {
pub const SUPER_POWER = 9000;
pub fn diagnose(self: User) void {
if (self.power >= SUPER_POWER) {
std.debug.print("it's over {d}!!!", .{SUPER_POWER});
fn isComplete(self: Stage) bool {
return self == .confirmed or self == .err;
const TimestampType = enum {
const Timestamp = union(TimestampType) {
const DateTime = struct {
fn seconds(self: Timestamp) u16 {
.datetime => |dt| return dt.second,
const seconds_since_midnight: i32 = @rem(ts, 86400);
return @intCast(@rem(seconds_since_midnight, 60));
const user = User{ .name = "Goku" };
while (i <= 16) : (i += 1) {
try stdout.writeAll("ZiggZagg\n");
try stdout.writeAll("Zigg\n");
try stdout.writeAll("Zagg\n");
try stdout.print("{d}\n", .{i});
std.debug.print("{d}\n", .{j});