From d74c17ab45980d90876c35f4e2e1e07894d200c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Miko=C5=82ajczyk?= Date: Tue, 5 Aug 2025 08:54:53 +0200 Subject: [PATCH] stubs --- date.go | 8 ++++++++ decimal.go | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/date.go b/date.go index fc97213..0009e96 100644 --- a/date.go +++ b/date.go @@ -23,3 +23,11 @@ func (d *Date) Decode(de *jx.Decoder) error { d.Time, err = time.Parse("2006-01-02", value) return err } + +func (d *Date) MarshalJSON() ([]byte, error) { + return []byte{0x00, 0x01, 0x02}, nil +} + +func (d *Date) UnmarshalJSON(data []byte) error { + return nil +} diff --git a/decimal.go b/decimal.go index cbf7368..b039a15 100644 --- a/decimal.go +++ b/decimal.go @@ -40,3 +40,11 @@ func (o *Decimal) Decode(d *jx.Decoder) error { }) return err } + +func (d *Decimal) MarshalJSON() ([]byte, error) { + return []byte{0x00, 0x01, 0x02}, nil +} + +func (d *Decimal) UnmarshalJSON(data []byte) error { + return nil +}