{"action":"opened","issue":{"url":"https://api.github.com/repos/Go-zh/tour/issues/248","repository_url":"https://api.github.com/repos/Go-zh/tour","labels_url":"https://api.github.com/repos/Go-zh/tour/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/Go-zh/tour/issues/248/comments","events_url":"https://api.github.com/repos/Go-zh/tour/issues/248/events","html_url":"https://github.com/Go-zh/tour/issues/248","id":220454170,"number":248,"title":"fallthrough not work at online example","user":{"login":"Phinome","id":1940194,"avatar_url":"https://avatars2.githubusercontent.com/u/1940194?v=3","gravatar_id":"","url":"https://api.github.com/users/Phinome","html_url":"https://github.com/Phinome","followers_url":"https://api.github.com/users/Phinome/followers","following_url":"https://api.github.com/users/Phinome/following{/other_user}","gists_url":"https://api.github.com/users/Phinome/gists{/gist_id}","starred_url":"https://api.github.com/users/Phinome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phinome/subscriptions","organizations_url":"https://api.github.com/users/Phinome/orgs","repos_url":"https://api.github.com/users/Phinome/repos","events_url":"https://api.github.com/users/Phinome/events{/privacy}","received_events_url":"https://api.github.com/users/Phinome/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-09T07:31:26Z","updated_at":"2017-04-09T07:31:26Z","closed_at":null,"body":"上下文: https://tour.go-zh.org/flowcontrol/9\r\n\r\n```golang\r\npackage main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\t\"runtime\"\r\n)\r\n\r\nfunc main() {\r\n\tfmt.Print(\"Go runs on \")\r\n\tswitch os := runtime.GOOS; os {\r\n\tcase \"darwin\":\r\n\t\tfmt.Println(\"OS X.\")\r\n\t\tfallthrough\r\n\tcase \"linux\":\r\n\t\tfmt.Println(\"Linux.\")\r\n\t\tfallthrough\r\n\tdefault:\r\n\t\t// freebsd, openbsd,\r\n\t\t// plan9, windows...\r\n\t\tfmt.Printf(\"%s.\", os)\r\n\t}\r\n}\r\n\r\n```\r\nThe code output in browser is:\r\n```text\r\nGo runs on nacl.\r\nProgram exited.\r\n```\r\n\r\nbut, run in local file, result:\r\n\r\n```text\r\nGo runs on OS X.\r\nLinux.\r\ndarwin.%\r\n```\r\n\r\nwhy ? it is a chrome bug , or go server bug ?"}}
{"actor":{"display_login":"Phinome"}}