diff options
Diffstat (limited to 'feed')
-rw-r--r-- | feed/vector.go | 7 |
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()) } |