Skip to content

Commit d3f5fce

Browse files
author
ekzyis
committed
Fix Item.DeletedAt missing
1 parent c184d18 commit d3f5fce

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

go.mod

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
module github.com/ekzyis/snappy
22

33
go 1.20
4+
5+
require gopkg.in/guregu/null.v4 v4.0.0 // indirect

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
gopkg.in/guregu/null.v4 v4.0.0 h1:1Wm3S1WEA2I26Kq+6vcW+w0gcDo44YKYD7YIEJNHDjg=
2+
gopkg.in/guregu/null.v4 v4.0.0/go.mod h1:YoQhUrADuG3i9WqesrCmpNRwm1ypAgSHYqoOcTu/JrI=

items.go

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import (
44
"encoding/json"
55
"fmt"
66
"time"
7+
8+
"gopkg.in/guregu/null.v4"
79
)
810

911
type Item struct {
@@ -14,6 +16,7 @@ type Item struct {
1416
Text string `json:"text"`
1517
Sats int `json:"sats"`
1618
CreatedAt time.Time `json:"createdAt"`
19+
DeletedAt null.Time `json:"deletedAt"`
1720
Comments []Comment `json:"comments"`
1821
NComments int `json:"ncomments"`
1922
User User `json:"user"`

0 commit comments

Comments
 (0)