diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-19 11:21:53 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-19 11:21:53 -0500 |
commit | e13483ec3fe8395b7bde559e89e885e23e873e9f (patch) | |
tree | a6fa8f9c2c7e21d3652256ec18ef4471451ea078 | |
parent | 3a3bc088d106fa4e0622a75d36dedd33d7cd5005 (diff) | |
download | cvez-e13483ec3fe8395b7bde559e89e885e23e873e9f.tar.bz2 cvez-e13483ec3fe8395b7bde559e89e885e23e873e9f.zip |
feed/score.go: document Score()
-rw-r--r-- | feed/score.go | 1 |
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) |