update: set toValue as public

This commit is contained in:
Lucas F. 2026-01-18 15:57:21 -03:00
parent 1888c5e07a
commit 655bed4c8f

View file

@ -36,7 +36,7 @@ pub const Context = struct {
self.arena.deinit();
}
fn toValue(self: *Context, value: anytype) !Value {
pub fn toValue(self: *Context, value: anytype) !Value {
const T = @TypeOf(value);
if (T == time.Time) {
return Value{ .string = try time.formatDateTime(self.allocator(), value, "Y-m-d H:i:s") };