MarshalJSON implements the json.Marshaler interface.
()
| 118 | |
| 119 | // MarshalJSON implements the json.Marshaler interface. |
| 120 | func (t Time) MarshalJSON() ([]byte, error) { |
| 121 | return []byte(t.String()), nil |
| 122 | } |
| 123 | |
| 124 | // UnmarshalJSON implements the json.Unmarshaler interface. |
| 125 | func (t *Time) UnmarshalJSON(b []byte) error { |