Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
FIX(Tweets) Json output
Browse files Browse the repository at this point in the history
  • Loading branch information
fgruchala committed Apr 2, 2017
1 parent bac56ba commit 5e2f337
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions model/Tweet.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import "fmt"

// Tweet define a tweet
type Tweet struct {
ID int64 `json:id`
CreatedAt string `json:created_at`
User *User `json:user`
Text string `json:text`
RetweetCount int `json:retweet_count`
ID int64 `json:"id"`
CreatedAt string `json:"created_at"`
User *User `json:"user"`
Text string `json:"text"`
RetweetCount int `json:"retweet_count"`
}

// String stringify the Tweet struct
Expand Down
2 changes: 1 addition & 1 deletion model/User.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "fmt"

// User define a user
type User struct {
ScreenName string `json:screen_name`
ScreenName string `json:"screen_name"`
}

// String stringify the User struct
Expand Down

0 comments on commit 5e2f337

Please sign in to comment.