소스 검색

http://twitter.com/users/Googland.json页面不存在了 (#393)

http://twitter.com/users/Googland.json页面不存在了
sanshan 9 년 전
부모
커밋
30fe7a7003
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      eBook/exercises/chapter_15/twitter_status_json.go

+ 1 - 1
eBook/exercises/chapter_15/twitter_status_json.go

@@ -18,7 +18,7 @@ type User struct {
 
 func main() {
 	/* perform an HTTP request for the twitter status of user: Googland */
-	res, _ := http.Get("http://twitter.com/users/Googland.json")
+	res, _ := http.Get("http://twitter.com/users/Googland.json")/*http://twitter.com/users/Googland.json页面不存在了*/
 	/* initialize the structure of the JSON response */
 	user := User{Status{""}}
 	/* unmarshal the JSON into our structures */