mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +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
|