-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
We need to replace dashes in file names with underscores.
$ cat > hello-world.thrift
struct Hello { 1: required string world }
$ thriftrw-go hello-world.thrift
$ head hello-world/types.go
// Code generated by thriftrw
package hello-world
[..]
Also, if we add a service, service Foo { Hello bar() }
,
$ thriftrw-go hello-world.thrift
2016/05/27 15:57:28 failed to generate code for "[..]/hello-world.thrift": could not generate code for service "Foo": could not generate types for Foo.bar: failed to generate code for "Foo.bar": could not parse generated code: thriftrw.go:6:20: expected ';', found '-' (and 1 more errors):
package thriftrw
type BarResult struct {
Success *hello-world.Hello `json:"success,omitempty"`
}
Metadata
Metadata
Assignees
Labels
No labels