stubs
This commit is contained in:
parent
f693a5ed5f
commit
d74c17ab45
8
date.go
8
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
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user