multifile_text

command
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package main demonstrates multi-file text generation with NewTextSet.

This is the "code / config generator" use case: the output is YAML meant for another template engine (Task runner), so HTML-escape would corrupt it ({{ becomes {{). NewTextSet never escapes.

The scaffold directory contains a Taskfile.yml.tmpl that uses {% include %} to pull in header.tmpl and footer.tmpl, and emits literal Task-runner variables using string-literal interpolation (e.g. {{ "{{.GOBIN}}" }}).

Run:

go run ./examples/multifile_text

Jump to

Keyboard shortcuts

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