Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Obama = TweetAuthor{ Name: "Barack Hussein Obama", ScreenNames: []string{"BarackObama", "POTUS44"}, ModernDay: false, }
Obama is Barack Obama
View Source
var Trump = TweetAuthor{ Name: "Donald John Trump", ScreenNames: []string{"realDonaldTrump", "POTUS"}, ModernDay: true, }
Trump is Donald Trump
Functions ¶
This section is empty.
Types ¶
type TweetAuthor ¶
TweetAuthor represents a conceptual presidential tweet author This can correspond to multiple actual Twitter accounts
func GetAuthorByScreenName ¶
func GetAuthorByScreenName(screenName string) (*TweetAuthor, error)
GetAuthorByScreenName picks out which author uses the given screen name
Click to show internal directories.
Click to hide internal directories.