mirror of
https://github.com/ziglang/zig.git
synced 2024-12-17 08:40:19 +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
|