Documentation ¶
Index ¶
- type Generator
- func (g *Generator) AddFile(p string, f *protogen.File)
- func (g *Generator) GenerateFile(ctx context.Context, p string) (*ast.File, error)
- func (g *Generator) Import(ctx context.Context, p protogen.GoImportPath, alias, name string, resolve bool) (ast.Expr, error)
- func (g *Generator) ResolveGoType(ctx context.Context, ident protogen.GoIdent) (ast.Expr, error)
- func (g *Generator) UseBuiltinType(ctx context.Context, name string) ast.Expr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func NewGenerator() *Generator
func (*Generator) GenerateFile ¶
func (*Generator) ResolveGoType ¶
Click to show internal directories.
Click to hide internal directories.