template

package
v1.223.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package template implements the template file manager: *.tmpl files are the human-edited source of truth and render to a sibling file with the .tmpl suffix stripped, using the .version context resolved from the lock. This covers comment-hostile formats (JSON) and any file where an explicit template beats in-place rewriting.

Index

Constants

View Source
const Name = "template"

Name is the manager's registry name.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct{}

Manager renders version templates to their sibling output files.

func (Manager) DefaultPaths

func (Manager) DefaultPaths() []string

DefaultPaths matches template files anywhere in the project tree.

func (Manager) Name

func (Manager) Name() string

Name returns the manager's registry name.

func (Manager) Plan

func (m Manager) Plan(ctx context.Context, in *managers.Input) ([]managers.FileChange, error)

Plan renders each template with the .version context and returns the sibling files whose content would change.

Jump to

Keyboard shortcuts

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