plugin

package
v0.0.0-...-2865eeb Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() generator.Plugin

New will return a new plugin instance

Types

type CustomPluginImports

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

CustomPluginImports ...

func NewPluginImports

func NewPluginImports(generator *generator.Generator) *CustomPluginImports

NewPluginImports will generate a new custom plugin import struct

func (*CustomPluginImports) GenerateImports

func (plg *CustomPluginImports) GenerateImports(file *generator.FileDescriptor)

GenerateImports is used to generete the import parts

func (*CustomPluginImports) NewImport

func (plg *CustomPluginImports) NewImport(pkg string) generator.Single

NewImport is used to import a new pkg

Jump to

Keyboard shortcuts

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