diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-13 15:28:16 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-13 15:28:47 +0200 |
commit | df144e727a858ed07e3c9328d91efe052c4781e1 (patch) | |
tree | bfbfeea70f97ab3d4274c8e5add2c3aeeac1423b /bug/comment.go | |
parent | f2f779c5a8b4efe67317bbffe110a9880c1f529a (diff) | |
download | git-bug-df144e727a858ed07e3c9328d91efe052c4781e1.tar.gz |
fix some linting trouble
Diffstat (limited to 'bug/comment.go')
-rw-r--r-- | bug/comment.go | 2 |
1 files changed, 2 insertions, 0 deletions
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) |