aboutsummaryrefslogtreecommitdiff
path: root/feed
diff options
context:
space:
mode:
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())
}