Help us shape the future of Go! Take the 2026 Go Developer Survey

generation

package
v0.2.34 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package generation provides the template-driven code generator that powers `codefly add` and agent scaffolding.

Given a generation spec (source template tree, destination, and a variable bag), it walks the tree, renders .tmpl files, and writes the result while honoring per-agent overrides for filenames, directory layout, and post-generation hooks.

Index

Constants

View Source
const ServiceGenerationConfigurationName = "service.generation.codefly.yaml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Replacement added in v0.1.116

type Replacement struct {
	From string `yaml:"from"`
	To   string `yaml:"to"`
}

type Service

type Service struct {
	Replacements   []Replacement `yaml:"replacements"`
	Ignores        []string      `yaml:"ignores"`
	SkipTemplatize bool          `yaml:"skip-templatize"`
}

Jump to

Keyboard shortcuts

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