{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/13255","labels_url":"https://api.github.com/repos/golang/go/issues/13255/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/13255/comments","events_url":"https://api.github.com/repos/golang/go/issues/13255/events","html_url":"https://github.com/golang/go/issues/13255","id":116996861,"number":13255,"title":"Hello world doesn't print to screen and program doesnt exit","user":{"login":"mbudge","id":15329154,"avatar_url":"https://avatars.githubusercontent.com/u/15329154?v=3","gravatar_id":"","url":"https://api.github.com/users/mbudge","html_url":"https://github.com/mbudge","followers_url":"https://api.github.com/users/mbudge/followers","following_url":"https://api.github.com/users/mbudge/following{/other_user}","gists_url":"https://api.github.com/users/mbudge/gists{/gist_id}","starred_url":"https://api.github.com/users/mbudge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbudge/subscriptions","organizations_url":"https://api.github.com/users/mbudge/orgs","repos_url":"https://api.github.com/users/mbudge/repos","events_url":"https://api.github.com/users/mbudge/events{/privacy}","received_events_url":"https://api.github.com/users/mbudge/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-15T15:15:40Z","updated_at":"2015-11-16T15:41:42Z","closed_at":"2015-11-16T15:41:42Z","body":"When I run the following code with the command \"go.exe run main.go\", the program doesnt print text to the screen or exit. \r\n\r\n    package main\r\n\r\n    import \"fmt\"\r\n\r\n    func main(){\r\n        fmt.Println(\"Hello world\")\r\n    }\r\n\r\nLine feeds\r\n\r\n    package mainLF\r\n    LF\r\n    import \"fmt\"LF\r\n    LF\r\n    func main(){LF\r\n        fmt.Println(\"Hello world\")LF\r\n    }LF\r\n\r\nThe following doesn't print to the command prompt either.\r\n\r\n    package main\r\n\r\n    //import \"fmt\"\r\n\r\n    func main(){\r\n        println(\"Hello world\")\r\n    }\r\n\r\nThe following gives the error \"fmt imported but not used\" so it must be doing something.\r\n\r\n    package main\r\n\r\n    import \"fmt\"\r\n\r\n    func main(){\r\n\r\n    }\r\n\r\nGOROOT is set to C:\\Go\\\r\n\r\nPATH: C:\\Go\\bin\r\n\r\nVersion  windows/386 on Windows 10\r\n\r\nFilepath: c:\\project\r\n\r\nCMD: go run c:\\project\\main.go\r\n\r\n\r\nset GOARCH=386\r\nset GOBIN=\r\nset GOEXE=.exe\r\nset GOHOSTARCH=386\r\nset GOHOSTOS=windows\r\nset GOOS=windows\r\nset GOPATH=C:\\Go\\bin\r\nset GORACE=\r\nset GOROOT=C:\\Go\r\nset GOTOOLDIR=C:\\Go\\pkg\\tool\\windows_386\r\nset GO15VENDOREXPERIMENT=\r\nset CC=gcc\r\nset GOGCCFLAGS=-m32 -mthreads -fmessage-length=0\r\nset CXX=g++\r\nset CGO_ENABLED=1\r\n\r\n![go](https://cloud.githubusercontent.com/assets/15329154/11171809/76c796d0-8bf1-11e5-883f-09f4ce001cc9.jpg)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/157073001","html_url":"https://github.com/golang/go/issues/13255#issuecomment-157073001","issue_url":"https://api.github.com/repos/golang/go/issues/13255","id":157073001,"user":{"login":"ianlancetaylor","id":3194333,"avatar_url":"https://avatars.githubusercontent.com/u/3194333?v=3","gravatar_id":"","url":"https://api.github.com/users/ianlancetaylor","html_url":"https://github.com/ianlancetaylor","followers_url":"https://api.github.com/users/ianlancetaylor/followers","following_url":"https://api.github.com/users/ianlancetaylor/following{/other_user}","gists_url":"https://api.github.com/users/ianlancetaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/ianlancetaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianlancetaylor/subscriptions","organizations_url":"https://api.github.com/users/ianlancetaylor/orgs","repos_url":"https://api.github.com/users/ianlancetaylor/repos","events_url":"https://api.github.com/users/ianlancetaylor/events{/privacy}","received_events_url":"https://api.github.com/users/ianlancetaylor/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T15:41:42Z","updated_at":"2015-11-16T15:41:42Z","body":"Due to anti-virus program; closing."}}