[
https://issues.apache.org/jira/browse/THRIFT-2189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14298994#comment-14298994
]
Jens Geyer commented on THRIFT-2189:
------------------------------------
Ok, finally got it. I completely forgot about the fact that no {{isset}} flags
are generated for Go, for some strange reason that I forgot. Using these
{{isset}} flags one can determine which of the non-required values are set.
Here's an example what is generated for C# (other languages use similar
patterns).
{code}
public Isset __isset;
public struct Isset {
public bool strong;
public bool integer;
public bool truethy;
}
{code}
That's the way to Go with Go.
> Go does not support "union" type
> --------------------------------
>
> Key: THRIFT-2189
> URL: https://issues.apache.org/jira/browse/THRIFT-2189
> Project: Thrift
> Issue Type: Bug
> Components: Go - Compiler
> Reporter: Jack L
> Assignee: Jens Geyer
> Fix For: 1.0
>
>
> Go thrift compiler does not support union types
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)