samuel / go-thrift

A native Thrift package for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parser error when `{` in new line

cloudaice opened this issue · comments

If I write idl like this:

struct  Example 
{
    1: int a,
    2: int b,
}

a error return when parsing.

otherwise, I write like this:

struct Example {
    1: int a,
    2: int b,
}

It will be ok.

How about support both two style ?

this has been fixed in master