diff --git a/main.go b/main.go index cf57679..079e6cf 100644 --- a/main.go +++ b/main.go @@ -36,6 +36,7 @@ type result struct { Down int `json:"thumbs_down"` } +// ByVotes aids in sorting result based on votes type ByVotes []result func (bv ByVotes) Len() int {