[ 
https://issues.apache.org/jira/browse/THRIFT-2106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13725514#comment-13725514
 ] 

Emir Habul commented on THRIFT-2106:
------------------------------------

First part of the question is for this line:

{code}
  "lib/go/test/NamespacedTest"
{code}

This comes from a file {{lib/go/test/NamespacedTest.thrift}} which specifies

{code}
namespace go lib.go.test.NamespacedTest
{code}

And that was chosen by looking at the dir in which it resides, but it could 
have been anything.

----

Second part of the question is for the line:

{code}
  "git.apache.org/thrift.git/lib/go/thrift"
{code}

That depends on the way in which thrift is called. In the test 
{{lib/go/test/Makefile.am}}, we invoke {{thrift --gen go:thrift_import=thrift}} 
which means that it will generate this instead

{code}
import (
  ...
  "thrift"
)
{code}

                
> Fix support for namespaces in GO generator
> ------------------------------------------
>
>                 Key: THRIFT-2106
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2106
>             Project: Thrift
>          Issue Type: Bug
>          Components: Go - Compiler
>            Reporter: Emir Habul
>              Labels: newbie, patch
>             Fix For: 0.9.1
>
>         Attachments: thrift-go-namespaces.patch
>
>
> Tests included

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to