file

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetTemplates

func SetTemplates(fsys fs.FS)

SetTemplates wires in the embedded templates/files sub-filesystem.

Types

type Generator

type Generator struct{}

Generator handles single-file and directory creation.

func (*Generator) Detect

func (g *Generator) Detect(ctx *generator.Context) bool

Detect returns true when no --template flag is set.

func (*Generator) Generate

func (g *Generator) Generate(ctx *generator.Context) error

func (*Generator) Name

func (g *Generator) Name() string

Jump to

Keyboard shortcuts

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