Documentation ¶
Index ¶
- func GetJsonName(field *descriptorpb.FieldDescriptorProto, defaultName string) string
- func RunPlugin(gen PluginFunc) error
- func ToLowerCamel(name string) string
- func ToSnakeCase(name string) string
- func ToUpperCamel(name string) string
- type Dep
- type Formatter
- func (f *Formatter) Deindent()
- func (f *Formatter) GetIndentUnit() int
- func (f *Formatter) Indent()
- func (f *Formatter) P(format string, a ...interface{})
- func (f *Formatter) PD(format string, a ...interface{})
- func (f *Formatter) PDI(format string, a ...interface{})
- func (f *Formatter) PI(format string, a ...interface{})
- func (f *Formatter) SetIndentUnit(n int)
- func (f *Formatter) String() string
- type PluginFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJsonName ¶
func GetJsonName(field *descriptorpb.FieldDescriptorProto, defaultName string) string
func RunPlugin ¶
func RunPlugin(gen PluginFunc) error
func ToLowerCamel ¶
func ToSnakeCase ¶
func ToUpperCamel ¶
Types ¶
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
func (*Formatter) GetIndentUnit ¶
func (*Formatter) SetIndentUnit ¶
type PluginFunc ¶
type PluginFunc = func(*pluginpb.CodeGeneratorRequest) (*pluginpb.CodeGeneratorResponse, error)
Click to show internal directories.
Click to hide internal directories.