# HG changeset patch # User Mikael Berthe # Date 1492536702 -7200 # Node ID 1af0a6199a93e2fc7c60a70ffff19407b09cb7b4 # Parent c578c80ed882bd363fafab8cf97ab0a23dd8cbc4 Change CreatedAt fields to time.Time diff -r c578c80ed882 -r 1af0a6199a93 types.go --- a/types.go Mon Apr 17 19:31:59 2017 +0200 +++ b/types.go Tue Apr 18 19:31:42 2017 +0200 @@ -30,19 +30,19 @@ // Account represents a Mastodon account entity type Account struct { - ID int `json:"id"` - Username string `json:"username"` - Acct string `json:"acct"` - DisplayName string `json:"display_name"` - Note string `json:"note"` - URL string `json:"url"` - Avatar string `json:"avatar"` - Header string `json:"header"` - Locked bool `json:"locked"` - CreatedAt string `json:"created_at"` - FollowersCount int `json:"followers_count"` - FollowingCount int `json:"following_count"` - StatusesCount int `json:"statuses_count"` + ID int `json:"id"` + Username string `json:"username"` + Acct string `json:"acct"` + DisplayName string `json:"display_name"` + Note string `json:"note"` + URL string `json:"url"` + Avatar string `json:"avatar"` + Header string `json:"header"` + Locked bool `json:"locked"` + CreatedAt time.Time `json:"created_at"` + FollowersCount int `json:"followers_count"` + FollowingCount int `json:"following_count"` + StatusesCount int `json:"statuses_count"` } // Application represents a Mastodon application entity @@ -98,11 +98,11 @@ // Notification represents a Mastodon notification entity type Notification struct { - ID int `json:"id"` - Type string `json:"type"` - CreatedAt string `json:"created_at"` - Account *Account `json:"account"` - Status *Status `json:"status"` + ID int `json:"id"` + Type string `json:"type"` + CreatedAt time.Time `json:"created_at"` + Account *Account `json:"account"` + Status *Status `json:"status"` } // Relationship represents a Mastodon relationship entity