texpand

command module
v0.0.0-...-b444a4c Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Unlicense Imports: 7 Imported by: 0

README

texpand

Command line tool to expand text templates, replacing some patterns with user defined values.

For example, if template.txt contains:

Hello {{.name}}, I'm {{.me}},
nice to meet you!

then it can be expanded as follows:

$ texpand -s name=Cathy -s me=Bob template.txt
Hello Cathy, I'm Bob,
nice to meet you!

The template syntax is that of golang text/template package.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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