Return result with error
This commit is contained in:
parent
5d2fb52297
commit
1faa46f8d1
2 changed files with 15 additions and 5 deletions
|
|
@ -20,6 +20,9 @@ import (
|
|||
|
||||
func main() {
|
||||
for tweet := range twitterscraper.GetTweets("kennethreitz", 25) {
|
||||
if tweet.Error != nil {
|
||||
panic(tweet.Error)
|
||||
}
|
||||
fmt.Println(tweet.HTML)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue