Documentation ¶ Index ¶ func MkdirAll(path string, mode os.FileMode) error type Context type Generator func NewGenerator(b *packr.Box, gc Context, opts ...Opt) Generator type Opt type Opts 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 } Source Files ¶ View all Source files gen.go types.go Click to show internal directories. Click to hide internal directories.