From 18d77f9fd26787e8f1db364c60e790ed68ec8394 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 19 Feb 2022 16:25:26 -0500 Subject: feed/vector.go: add String() --- feed/vector.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/feed/vector.go b/feed/vector.go index 9f20dc6..8b2dc9b 100644 --- a/feed/vector.go +++ b/feed/vector.go @@ -33,7 +33,12 @@ func (me *Vector) UnmarshalJSON(b []byte) error { return nil } +// 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()) } -- cgit v1.2.3