diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-19 09:34:01 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-19 09:34:01 -0500 |
commit | 479aa477c7a7d1711c3266fe626fb5ed544ac64c (patch) | |
tree | 6bd663ec7c0ec9efd5144988839222ad1ea27bce /feed | |
parent | 14ba42b83fc9ea6f811f8ff44b449f9ad6a90f85 (diff) | |
download | cvez-479aa477c7a7d1711c3266fe626fb5ed544ac64c.tar.bz2 cvez-479aa477c7a7d1711c3266fe626fb5ed544ac64c.zip |
feed/time.go: add MarshalText()
Diffstat (limited to 'feed')
-rw-r--r-- | feed/time.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/feed/time.go b/feed/time.go index 6eb5d37..89e6a56 100644 --- a/feed/time.go +++ b/feed/time.go @@ -42,3 +42,7 @@ func (me *Time) UnmarshalJSON(b []byte) error { return nil } +// Marshal time. +func (me *Time) MarshalText() ([]byte, error) { + return time.Time(*me).MarshalText() +} |