| author | |
| committer | |
| log | 9bbecc6e25ba446060b4417133c9de2eacd63076 |
| tree | 218f9d29c5db0a19815b3c5fccd8449b3987f43c |
| parent | 56d2be5b73a82a3973d1060fc72734da665e485e |
| signature | Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw |
1 files changed, 1 insertions(+), 0 deletions(-)
ulid.zig+1| ... | @@ -36,6 +36,7 @@ pub const ULID = struct { | ... | @@ -36,6 +36,7 @@ pub const ULID = struct { |
| 36 | randomnes: u80, | 36 | randomnes: u80, |
| 37 | 37 | ||
| 38 | pub const BaseType = string; | 38 | pub const BaseType = string; |
| 39 | pub const baseTypeName = "char(26)"; | ||
| 39 | 40 | ||
| 40 | pub fn parse(alloc: std.mem.Allocator, value: BaseType) !ULID { | 41 | pub fn parse(alloc: std.mem.Allocator, value: BaseType) !ULID { |
| 41 | if (value.len != 26) return error.Ulid; | 42 | if (value.len != 26) return error.Ulid; |