| author | |
| committer | |
| log | 8c0042bd1698f01d83dbddd65a75850090fdb577 |
| tree | b5ef21d86682b6bad6b4b200dba0847b3e7d0c5f |
| parent | 764f60937313980784cd7d081d091a0598196af2 |
| signature |
1 files changed, 0 insertions(+), 4 deletions(-)
ulid.zig-4| ... | ... | @@ -37,10 +37,6 @@ pub const ULID = struct { |
| 37 | 37 | |
| 38 | 38 | pub const BaseType = string; |
| 39 | 39 | |
| 40 | pub fn jsonStringify(self: @This(), json_stream: anytype) !void { | |
| 41 | try json_stream.write(&self.bytes()); | |
| 42 | } | |
| 43 | ||
| 44 | 40 | pub fn parse(alloc: std.mem.Allocator, value: BaseType) !ULID { |
| 45 | 41 | if (value.len != 26) return error.Ulid; |
| 46 | 42 | return ULID{ |