Skip to content

Dashes in Thrift file names #143

@abhinav

Description

@abhinav

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions