aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-19 11:21:53 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-19 11:21:53 -0500
commite13483ec3fe8395b7bde559e89e885e23e873e9f (patch)
treea6fa8f9c2c7e21d3652256ec18ef4471451ea078
parent3a3bc088d106fa4e0622a75d36dedd33d7cd5005 (diff)
downloadcvez-e13483ec3fe8395b7bde559e89e885e23e873e9f.tar.bz2
cvez-e13483ec3fe8395b7bde559e89e885e23e873e9f.zip
feed/score.go: document Score()
-rw-r--r--feed/score.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/feed/score.go b/feed/score.go
index 051522f..724e8f0 100644
--- a/feed/score.go
+++ b/feed/score.go
@@ -28,6 +28,7 @@ func (me *Score) UnmarshalJSON(b []byte) error {
return nil
}
+// Convert to string.
func (me Score) String() string {
val := float64(me) / 10.0
return strconv.FormatFloat(val, 'f', 1, 64)