Versions in this module Expand all Collapse all v0 v0.0.1 Nov 1, 2024 Changes in this version + func ExtractExtraProperties(bytes []byte, value interface{}, exclude ...string) (map[string]interface{}, error) + func MarshalJSONWithExtraProperties(marshaler interface{}, extraProperties map[string]interface{}) ([]byte, error) + func MarshalJSONWithExtraProperty(marshaler interface{}, key string, value interface{}) ([]byte, error) + func StringifyJSON(value interface{}) (string, error) + type Date struct + func NewDate(t time.Time) *Date + func NewOptionalDate(t *time.Time) *Date + func (d *Date) MarshalJSON() ([]byte, error) + func (d *Date) Time() time.Time + func (d *Date) TimePtr() *time.Time + func (d *Date) UnmarshalJSON(data []byte) error + type DateTime struct + func NewDateTime(t time.Time) *DateTime + func NewOptionalDateTime(t *time.Time) *DateTime + func (d *DateTime) MarshalJSON() ([]byte, error) + func (d *DateTime) Time() time.Time + func (d *DateTime) TimePtr() *time.Time + func (d *DateTime) UnmarshalJSON(data []byte) error