diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-19 16:25:26 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-19 16:25:26 -0500 |
commit | 18d77f9fd26787e8f1db364c60e790ed68ec8394 (patch) | |
tree | 94beda4dad1a1cf967392e2a06085be36286be88 /feed | |
parent | 59945eac71e9a3d5955266dac902689cf8404a3c (diff) | |
download | cvez-18d77f9fd26787e8f1db364c60e790ed68ec8394.tar.bz2 cvez-18d77f9fd26787e8f1db364c60e790ed68ec8394.zip |
feed/vector.go: add String()
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()) } |