{"action":"created","issue":{"url":"https://api.github.com/repos/dop251/goja/issues/8","repository_url":"https://api.github.com/repos/dop251/goja","labels_url":"https://api.github.com/repos/dop251/goja/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/dop251/goja/issues/8/comments","events_url":"https://api.github.com/repos/dop251/goja/issues/8/events","html_url":"https://github.com/dop251/goja/pull/8","id":188909758,"number":8,"title":"Extensible mapping between ECMA script and GO field/method names","user":{"login":"crazytyper","id":1025263,"avatar_url":"https://avatars.githubusercontent.com/u/1025263?v=3","gravatar_id":"","url":"https://api.github.com/users/crazytyper","html_url":"https://github.com/crazytyper","followers_url":"https://api.github.com/users/crazytyper/followers","following_url":"https://api.github.com/users/crazytyper/following{/other_user}","gists_url":"https://api.github.com/users/crazytyper/gists{/gist_id}","starred_url":"https://api.github.com/users/crazytyper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crazytyper/subscriptions","organizations_url":"https://api.github.com/users/crazytyper/orgs","repos_url":"https://api.github.com/users/crazytyper/repos","events_url":"https://api.github.com/users/crazytyper/events{/privacy}","received_events_url":"https://api.github.com/users/crazytyper/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-12T12:41:07Z","updated_at":"2016-11-13T17:08:52Z","closed_at":"2016-11-13T16:26:50Z","pull_request":{"url":"https://api.github.com/repos/dop251/goja/pulls/8","html_url":"https://github.com/dop251/goja/pull/8","diff_url":"https://github.com/dop251/goja/pull/8.diff","patch_url":"https://github.com/dop251/goja/pull/8.patch"},"body":"In my project I need to use a custom mapping between go field/names and the property names visible to ECMA script code.\r\n\r\nIn particular I need to surface go field names with the name defined in the `json` field tag.\r\n\r\nExample:\r\n```go\r\ntype MyStruct struct {\r\n    MyField string `json:\"myfield\"` // <-- field with json tag\r\n}\r\n```\r\n\r\nIn ECMA script:\r\n```javascript\r\nvar v = ...;\r\nconsole.log(v.myfield);  // <-- name defined by json tag\r\n```\r\n\r\nTo achieve that I introduced a `ReflectNamer` interface and a public property `Naming`."},"comment":{"url":"https://api.github.com/repos/dop251/goja/issues/comments/260198569","html_url":"https://github.com/dop251/goja/pull/8#issuecomment-260198569","issue_url":"https://api.github.com/repos/dop251/goja/issues/8","id":260198569,"user":{"login":"crazytyper","id":1025263,"avatar_url":"https://avatars.githubusercontent.com/u/1025263?v=3","gravatar_id":"","url":"https://api.github.com/users/crazytyper","html_url":"https://github.com/crazytyper","followers_url":"https://api.github.com/users/crazytyper/followers","following_url":"https://api.github.com/users/crazytyper/following{/other_user}","gists_url":"https://api.github.com/users/crazytyper/gists{/gist_id}","starred_url":"https://api.github.com/users/crazytyper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crazytyper/subscriptions","organizations_url":"https://api.github.com/users/crazytyper/orgs","repos_url":"https://api.github.com/users/crazytyper/repos","events_url":"https://api.github.com/users/crazytyper/events{/privacy}","received_events_url":"https://api.github.com/users/crazytyper/received_events","type":"User","site_admin":false},"created_at":"2016-11-13T17:08:52Z","updated_at":"2016-11-13T17:08:52Z","body":"👍  your solution is not only nicer but also a lot faster! thx"}}
{"actor":{"display_login":"crazytyper"}}