gen

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MkdirAll

func MkdirAll(path string, mode os.FileMode) error

Types

type Context

type Context interface{}

type Generator

type Generator interface {
	// Write all of the templates
	Write() error
}

func NewGenerator

func NewGenerator(b *packr.Box, gc Context, opts ...Opt) Generator

type Opt

type Opt func(*Opts)

type Opts

type Opts struct {
	// Dir is the directory to write to
	Dir string
	// FileMode
	FileMode os.FileMode
	// Templates
	Templates map[string]string
	// Vars
	Vars templr.Vars
}

Jump to

Keyboard shortcuts

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