{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/12475","labels_url":"https://api.github.com/repos/golang/go/issues/12475/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/12475/comments","events_url":"https://api.github.com/repos/golang/go/issues/12475/events","html_url":"https://github.com/golang/go/issues/12475","id":104710505,"number":12475,"title":"x/mobile/bind: support exported const and vars.","user":{"login":"hyangah","id":4999471,"avatar_url":"https://avatars.githubusercontent.com/u/4999471?v=3","gravatar_id":"","url":"https://api.github.com/users/hyangah","html_url":"https://github.com/hyangah","followers_url":"https://api.github.com/users/hyangah/followers","following_url":"https://api.github.com/users/hyangah/following{/other_user}","gists_url":"https://api.github.com/users/hyangah/gists{/gist_id}","starred_url":"https://api.github.com/users/hyangah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyangah/subscriptions","organizations_url":"https://api.github.com/users/hyangah/orgs","repos_url":"https://api.github.com/users/hyangah/repos","events_url":"https://api.github.com/users/hyangah/events{/privacy}","received_events_url":"https://api.github.com/users/hyangah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/22","html_url":"https://github.com/golang/go/milestones/Unreleased","labels_url":"https://api.github.com/repos/golang/go/milestones/22/labels","id":1067491,"number":22,"title":"Unreleased","description":"Issues that do not affect released Go code and binaries.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":348,"closed_issues":198,"state":"open","created_at":"2015-04-14T18:48:22Z","updated_at":"2015-09-03T16:35:48Z","due_on":"2099-12-31T05:00:00Z","closed_at":null},"comments":2,"created_at":"2015-09-03T14:40:14Z","updated_at":"2015-09-03T17:21:22Z","closed_at":null,"body":"As long as the const and var's type is currently supported types.\r\n\r\nFor variables, maybe provide getter/setter functions. (Avoiding name conflicts)\r\n\r\nFor const numeric/string and byte slice types, we can create constants in the foreign language.\r\nFor const struct/interface types, we will need getter/setter like in variables, so the actual instance remains in the go side.\r\n\r\nConst errors seem complicated.\r\n\r\n/cc @crawshaw "},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/137518190","html_url":"https://github.com/golang/go/issues/12475#issuecomment-137518190","issue_url":"https://api.github.com/repos/golang/go/issues/12475","id":137518190,"user":{"login":"scisci","id":1807438,"avatar_url":"https://avatars.githubusercontent.com/u/1807438?v=3","gravatar_id":"","url":"https://api.github.com/users/scisci","html_url":"https://github.com/scisci","followers_url":"https://api.github.com/users/scisci/followers","following_url":"https://api.github.com/users/scisci/following{/other_user}","gists_url":"https://api.github.com/users/scisci/gists{/gist_id}","starred_url":"https://api.github.com/users/scisci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scisci/subscriptions","organizations_url":"https://api.github.com/users/scisci/orgs","repos_url":"https://api.github.com/users/scisci/repos","events_url":"https://api.github.com/users/scisci/events{/privacy}","received_events_url":"https://api.github.com/users/scisci/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T17:21:22Z","updated_at":"2015-09-03T17:21:22Z","body":"Just to clarify, I was hoping all of the exported constants from my library would be available in IOS/Android. I tend to do a bunch of:\r\n```\r\nconst SomePublicConstant = \"some public contant\"\r\n```\r\nIs there another way for me to set this up so it works now?"}}