aboutsummaryrefslogtreecommitdiff
path: root/feed
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-19 09:34:01 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-19 09:34:01 -0500
commit479aa477c7a7d1711c3266fe626fb5ed544ac64c (patch)
tree6bd663ec7c0ec9efd5144988839222ad1ea27bce /feed
parent14ba42b83fc9ea6f811f8ff44b449f9ad6a90f85 (diff)
downloadcvez-479aa477c7a7d1711c3266fe626fb5ed544ac64c.tar.bz2
cvez-479aa477c7a7d1711c3266fe626fb5ed544ac64c.zip
feed/time.go: add MarshalText()
Diffstat (limited to 'feed')
-rw-r--r--feed/time.go4
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()
+}