{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/9733","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/9733/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/9733/comments","events_url":"https://api.github.com/repos/golang/go/issues/9733/events","html_url":"https://github.com/golang/go/issues/9733","id":55975827,"number":9733,"title":"cmd/cgo: could not determine kind of name for C.datspecialnumber","user":{"login":"ghost","id":10137,"avatar_url":"https://avatars.githubusercontent.com/u/10137?v=3","gravatar_id":"","url":"https://api.github.com/users/ghost","html_url":"https://github.com/ghost","followers_url":"https://api.github.com/users/ghost/followers","following_url":"https://api.github.com/users/ghost/following{/other_user}","gists_url":"https://api.github.com/users/ghost/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost/subscriptions","organizations_url":"https://api.github.com/users/ghost/orgs","repos_url":"https://api.github.com/users/ghost/repos","events_url":"https://api.github.com/users/ghost/events{/privacy}","received_events_url":"https://api.github.com/users/ghost/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-01-29T23:55:55Z","updated_at":"2016-08-31T00:10:31Z","closed_at":"2015-01-30T00:00:37Z","body":"Code in Go file:\r\n\r\n```\r\npackage main\r\n\r\n/*\r\n#include <stdio.h>\r\nint datspecialnumber() {\r\n\treturn 2015;\r\n}\r\n*/\r\n\r\nimport \"C\"\r\nimport \"fmt\"\r\n\r\nfunc main() {\r\n\tfmt.Println(C.datspecialnumber())\r\n}\r\n\r\n```\r\n\r\nOutput from `go run test.go`:\r\n\r\n```\r\n# command-line-arguments\r\ncould not determine kind of name for C.datspecialnumber\r\n```\r\n\r\nMore info\r\n```\r\ngo version go1.4 linux/amd64\r\n\r\ngcc (GCC) 4.9.2 20141224 (prerelease)\r\nCopyright (C) 2014 Free Software Foundation, Inc.\r\nThis is free software; see the source for copying conditions.  There is NO\r\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r\n\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOCHAR=\"6\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"/home/president/go\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/lib/go\"\r\nGOTOOLDIR=\"/usr/lib/go/pkg/tool/linux_amd64\"\r\nCC=\"gcc\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\n```\r\n\r\nAnyone have an idea of what is causing this error? Am i doing something wrong?"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/243620653","html_url":"https://github.com/golang/go/issues/9733#issuecomment-243620653","issue_url":"https://api.github.com/repos/golang/go/issues/9733","id":243620653,"user":{"login":"stgleb","id":5112367,"avatar_url":"https://avatars.githubusercontent.com/u/5112367?v=3","gravatar_id":"","url":"https://api.github.com/users/stgleb","html_url":"https://github.com/stgleb","followers_url":"https://api.github.com/users/stgleb/followers","following_url":"https://api.github.com/users/stgleb/following{/other_user}","gists_url":"https://api.github.com/users/stgleb/gists{/gist_id}","starred_url":"https://api.github.com/users/stgleb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stgleb/subscriptions","organizations_url":"https://api.github.com/users/stgleb/orgs","repos_url":"https://api.github.com/users/stgleb/repos","events_url":"https://api.github.com/users/stgleb/events{/privacy}","received_events_url":"https://api.github.com/users/stgleb/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T00:10:31Z","updated_at":"2016-08-31T00:10:31Z","body":"I just want to add that multiline imports like\r\n\r\n`import (\r\n               \"C\"\r\n                \"fmt\"\r\n)`\r\n\r\nAlso breaks this stuff"}}
{"actor":{"display_login":"stgleb"}}