diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-14 22:18:40 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-14 22:18:40 +0200 |
commit | d973718567b0f7a7e775dbab2c557f0dda9afa29 (patch) | |
tree | 9cdaa94f72b62de0af65e77015587ad2093b3600 /bug/comment.go | |
parent | da470993d13ce63087034db9b7e8ffbdf18e87a5 (diff) | |
download | git-bug-d973718567b0f7a7e775dbab2c557f0dda9afa29.tar.gz |
add time to comments
Diffstat (limited to 'bug/comment.go')
-rw-r--r-- | bug/comment.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bug/comment.go b/bug/comment.go index f7727709..2261f6de 100644 --- a/bug/comment.go +++ b/bug/comment.go @@ -1,6 +1,12 @@ package bug +import "time" + type Comment struct { Author Person Message string + + // Creation time of the comment. + // Should be used only for human display, never for ordering as we can't rely on it in a distributed system. + Time time.Time } |