internal

package
v0.0.0-...-6e5e7ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 ToLowerCamel(name string) string

func ToSnakeCase

func ToSnakeCase(name string) string

func ToUpperCamel

func ToUpperCamel(name string) string

Types

type Dep

type Dep struct {
	// weak でない参照されている数
	Ref int
	// weak の有無にかかわらず、とにかく参照されたことがあるかどうか
	Refed   bool
	Removed bool
}

type Formatter

type Formatter struct {
	// contains filtered or unexported fields
}

func (*Formatter) Deindent

func (f *Formatter) Deindent()

func (*Formatter) GetIndentUnit

func (f *Formatter) GetIndentUnit() int

func (*Formatter) Indent

func (f *Formatter) Indent()

func (*Formatter) P

func (f *Formatter) P(format string, a ...interface{})

func (*Formatter) PD

func (f *Formatter) PD(format string, a ...interface{})

func (*Formatter) PDI

func (f *Formatter) PDI(format string, a ...interface{})

func (*Formatter) PI

func (f *Formatter) PI(format string, a ...interface{})

func (*Formatter) SetIndentUnit

func (f *Formatter) SetIndentUnit(n int)

func (*Formatter) String

func (f *Formatter) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL