generator

package
v0.0.0-...-76941fe Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	Generate()
}

Generator is an interface to create go source code.

func NewGenerator

func NewGenerator(params *Params, outW io.Writer, opts ...Option) Generator

NewGenerator returns Generator implementations(*generator).

type Option

type Option func(g *generator)

Option is functional option for generator object.

func WithCLI

func WithCLI() Option

WithCLI rturns option that sets CLI mode.

type Params

type Params struct {
	Wd      string
	AppName string
	Mod     string
}

Prams is parameter for generated package.

Jump to

Keyboard shortcuts

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