From df144e727a858ed07e3c9328d91efe052c4781e1 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Mon, 13 Aug 2018 15:28:16 +0200 Subject: fix some linting trouble --- bug/comment.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bug/comment.go') diff --git a/bug/comment.go b/bug/comment.go index 0b4fd6ad..ef5d9ef7 100644 --- a/bug/comment.go +++ b/bug/comment.go @@ -6,6 +6,7 @@ import ( "time" ) +// Comment represent a comment in a Bug type Comment struct { Author Person Message string @@ -16,6 +17,7 @@ type Comment struct { UnixTime int64 } +// FormatTime format the UnixTime of the comment for human consumption func (c Comment) FormatTime() string { t := time.Unix(c.UnixTime, 0) return humanize.Time(t) -- cgit