generate

package
v0.0.0-...-98b4799 Latest Latest
Warning

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

Go to latest
Published: May 12, 2016 License: EPL-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ctx *cmd.Context)

Types

type Config

type Config struct {
	Source string
	Dest   string
}

type Generator

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

func NewGenerator

func NewGenerator(conf *Config) *Generator

func (*Generator) GenSource

func (g *Generator) GenSource(src *Source) error

func (*Generator) Run

func (g *Generator) Run() error

type Source

type Source struct {
	Config *Config
	Source string
	Dest   string
	Name   string
	Data   interface{}
	// contains filtered or unexported fields
}

func (*Source) RawTemplate

func (src *Source) RawTemplate() (string, error)

func (*Source) ToTemplate

func (src *Source) ToTemplate() (*template.Template, error)

Jump to

Keyboard shortcuts

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