mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
16 lines
264 B
Zig
16 lines
264 B
Zig
const std = @import("std");
|
|
|
|
pub const json = struct {
|
|
pub const JsonValue = union(enum) {
|
|
number: f64,
|
|
boolean: bool,
|
|
// ...
|
|
};
|
|
};
|
|
|
|
pub fn main() void {
|
|
std.debug.print("{s}\n", .{@typeName(json.JsonValue)});
|
|
}
|
|
|
|
// exe=succeed
|