aboutsummaryrefslogtreecommitdiff
path: root/feed
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-19 16:25:26 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-19 16:25:26 -0500
commit18d77f9fd26787e8f1db364c60e790ed68ec8394 (patch)
tree94beda4dad1a1cf967392e2a06085be36286be88 /feed
parent59945eac71e9a3d5955266dac902689cf8404a3c (diff)
downloadcvez-18d77f9fd26787e8f1db364c60e790ed68ec8394.tar.bz2
cvez-18d77f9fd26787e8f1db364c60e790ed68ec8394.zip
feed/vector.go: add String()
Diffstat (limited to 'feed')
-rw-r--r--feed/vector.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/feed/vector.go b/feed/vector.go
index 9f20dc6..8b2dc9b 100644
--- a/feed/vector.go
+++ b/feed/vector.go
@@ -34,6 +34,11 @@ func (me *Vector) UnmarshalJSON(b []byte) error {
}
// Marshal CVSS vector to JSON.
+func (me Vector) String() string {
+ return me.Vector.String()
+}
+
+// Marshal CVSS vector to JSON.
func (me Vector) MarshalJSON() ([]byte, error) {
- return json.Marshal(me.Vector.String())
+ return json.Marshal(me.String())
}