Does not make any sense to have ID anything else than int64.
authorOllivier Robert <roberto@keltia.net>
Wed, 05 Apr 2017 22:03:09 +0200
changeset 20 3379b2ff8f4c
parent 19 9f4ae6d2a995
child 21 555716349f64
Does not make any sense to have ID anything else than int64.
types.go
--- a/types.go	Wed Apr 05 19:38:50 2017 +0200
+++ b/types.go	Wed Apr 05 22:03:09 2017 +0200
@@ -22,7 +22,7 @@
 */
 
 type Account struct {
-	ID          int
+	ID          int64
 	Username    string
 	Acct        string
 	DisplayName string
@@ -42,7 +42,7 @@
 }
 
 type Attachement struct {
-	ID         int
+	ID         int64
 	Type       string
 	URL        string
 	RemoteURL  string
@@ -74,14 +74,14 @@
 }
 
 type Mention struct {
-	ID       int
+	ID       int64
 	URL      string
 	Username string
 	Acct     string
 }
 
 type Notification struct {
-	ID        int
+	ID        int64
 	Type      string
 	CreatedAt time.Time
 	Account   *Account
@@ -96,7 +96,7 @@
 	Requested  bool
 }
 type Report struct {
-	ID          int
+	ID          int64
 	ActionTaken string
 }
 
@@ -107,12 +107,12 @@
 }
 
 type Status struct {
-	ID                 int
+	ID                 int64
 	URI                string
 	URL                string
 	Account            *Account
-	InReplyToId        int
-	InReplyToAccountID int
+	InReplyToId        int64
+	InReplyToAccountID int64
 	Reblog             *Status
 	Content            string
 	CreatedAT          time.Time