aboutsummaryrefslogtreecommitdiff
path: root/feed/score.go
diff options
context:
space:
mode:
Diffstat (limited to 'feed/score.go')
-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)