Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NamingStyles ¶
func NamingStyles() (ns []string)
NamingStyles returns all supported naming styles.
Types ¶
type Apache ¶
type Apache struct {
// contains filtered or unexported fields
}
Apache ports functions adapted from the apache thrift go generator. See https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=compiler/cpp/src/thrift/generate/t_go_generator.cc
func (*Apache) UseInitialisms ¶
UseInitialisms implements NamingStyle.
type GoLint ¶
type GoLint struct {
// contains filtered or unexported fields
}
GoLint implements a naming conversion algorithm that similar to https://github.com/golang/lint.
func (*GoLint) UseInitialisms ¶
UseInitialisms implements NamingStyle.
type Naming ¶
type Naming interface { Name() string Identify(name string) (string, error) UseInitialisms(enable bool) }
Naming determine naming style of the identifier converted from IDL.
func NewNamingStyle ¶
NewNamingStyle creates a Naming with the given name. If the given name is supported, this function returns nil.
type ThriftGo ¶
type ThriftGo struct {
// contains filtered or unexported fields
}
ThriftGo is the default naming style of thrifgo.
func (*ThriftGo) UseInitialisms ¶
UseInitialisms implements NamingStyle.