Skip to content

Instantly share code, notes, and snippets.

@moderation
Created February 4, 2011 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moderation/811487 to your computer and use it in GitHub Desktop.
Save moderation/811487 to your computer and use it in GitHub Desktop.
Updated types.go file for hoisie/twitterstream after getting a bit of help from @enneff
package twitterstream
type Hashtags struct {
Indices []int
Text string
}
type Urls struct {
Url string
Indices []int
Display_url string
Expanded_url string
}
type User_mentions struct {
Indices []int
Screen_name string
Id_str string
Name string
Id int64
}
type Entities struct {
Hashtags []Hashtags
Urls []Urls
User_mentions []User_mentions
}
type User struct {
Lang string
Verified bool
Followers_count int
Location string
Screen_name string
Following bool
Friends_count int
Profile_background_color string
Favourites_count int
Description string
Notifications string
Profile_text_color string
Url string
Time_zone string
Statuses_count int
Profile_link_color string
Geo_enabled bool
Profile_background_image_url string
Protected bool
Contributors_enabled bool
Profile_sidebar_fill_color string
Name string
Profile_background_tile string
Created_at string
Profile_image_url string
Id int64
Id_str string
Utc_offset int
Profile_sidebar_border_color string
}
type Tweet struct {
Text string
Truncated bool
Geo string
In_reply_to_screen_name string
Favorited bool
Source string
Contributors string
In_reply_to_status_id string
In_reply_to_user_id int64
Id int64
Created_at string
Entities Entities
User User
}
type SiteStreamMessage struct {
For_user int64
Message Tweet
}
type Event struct {
Target User
Source User
Created_at string
Event string
}
type FriendList struct {
Friends []int64
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment