You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2015/05/15 22:15:00 UTC
[jira] [Assigned] (THRIFT-3149) Make ReadFieldN methods in
generated Go code private
[ https://issues.apache.org/jira/browse/THRIFT-3149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer reassigned THRIFT-3149:
----------------------------------
Assignee: Jens Geyer
> Make ReadFieldN methods in generated Go code private
> ----------------------------------------------------
>
> Key: THRIFT-3149
> URL: https://issues.apache.org/jira/browse/THRIFT-3149
> Project: Thrift
> Issue Type: Improvement
> Components: Go - Compiler
> Affects Versions: 0.9.2
> Reporter: Konstantin Shaposhnikov
> Assignee: Jens Geyer
>
> The go thrift compiler generates ReadFieldN and writeFieldN methods for every field of a struct. E.g.:
> {code}
> func (p *Statistics) ReadField1(iprot thrift.TProtocol) error {
> ...
> }
> func (p *Statistics) writeField1(oprot thrift.TProtocol) (err error) {
> ...
> }
> {code}
> ReadField1, ReadField2, etc are not very descriptive names and shouldn't be part of public API of a generated package (like writeFieldN).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)