plugin

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanImports

func CleanImports(pFileText *string) *string

CleanImports removes extraneous imports and lines from a proto response file Content

Types

type SqlxPlugin

type SqlxPlugin struct {
	*generator.Generator
	// contains filtered or unexported fields
}

SqlxPlugin implements the plugin interface and creates SqlX code from .protos

func (*SqlxPlugin) Generate

func (p *SqlxPlugin) Generate(file *generator.FileDescriptor)

func (*SqlxPlugin) GenerateImports

func (p *SqlxPlugin) GenerateImports(file *generator.FileDescriptor)

GenerateImports writes out required imports for the generated files

func (*SqlxPlugin) Init

func (p *SqlxPlugin) Init(g *generator.Generator)

Init is called once after data structures are built but before code generation begins.

func (*SqlxPlugin) Name

func (p *SqlxPlugin) Name() string

Name identifies the plugin

Jump to

Keyboard shortcuts

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