From 15e6851740d1f0cb10fe6f7ffb36b4ccd7e001f5 Mon Sep 17 00:00:00 2001 From: derek mcquay Date: Sat, 13 Feb 2016 23:50:09 -0800 Subject: [PATCH] added comment for exported type to pass golint Running goling on project causes it to have an error. Added comment to fix it. --- main.go | 1 + 1 file changed, 1 insertion(+) 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 {