{"action":"closed","issue":{"url":"https://api.github.com/repos/gengo/grpc-gateway/issues/86","repository_url":"https://api.github.com/repos/gengo/grpc-gateway","labels_url":"https://api.github.com/repos/gengo/grpc-gateway/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/gengo/grpc-gateway/issues/86/comments","events_url":"https://api.github.com/repos/gengo/grpc-gateway/issues/86/events","html_url":"https://github.com/gengo/grpc-gateway/issues/86","id":125295781,"number":86,"title":"Static mapping from proto field names to golang field names","user":{"login":"yugui","id":8161,"avatar_url":"https://avatars.githubusercontent.com/u/8161?v=3","gravatar_id":"","url":"https://api.github.com/users/yugui","html_url":"https://github.com/yugui","followers_url":"https://api.github.com/users/yugui/followers","following_url":"https://api.github.com/users/yugui/following{/other_user}","gists_url":"https://api.github.com/users/yugui/gists{/gist_id}","starred_url":"https://api.github.com/users/yugui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yugui/subscriptions","organizations_url":"https://api.github.com/users/yugui/orgs","repos_url":"https://api.github.com/users/yugui/repos","events_url":"https://api.github.com/users/yugui/events{/privacy}","received_events_url":"https://api.github.com/users/yugui/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gengo/grpc-gateway/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-07T00:32:31Z","updated_at":"2016-02-05T01:56:29Z","closed_at":"2016-02-05T01:56:29Z","body":"As discussed in https://github.com/gengo/grpc-gateway/pull/85#issuecomment-169233650, `runtime/query.go` requires runtime mapping from proto field names to golang field names.\r\nBut the mapping rule got complicated in golang/protobuf@2c7bafc42e6d424101ea4b362431201be1bc2673.\r\n\r\nSo it is better to generate a static mapping for each message or query fields with struct tags to keep consistency to the mapping rule."}}