title: How to implement golang service based on Apache Thrift with exceptions?
body: <p>I have a service <strong>thrift</strong> interface for <code>result</code> method as follows:</p>
  
  <pre><code>exception SomeException {
      1: string message;
  }
  
  string result(
      1: string token,
      2: string identifier
  ) throws (
      1: SomeException ex,
  );
  </code></pre>
  
  <p>How di I implement this properly in <strong>golang</strong>? I want exceptions to be thrown properly for clients of this Thrift service.</p>