envtpl

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

README

envtpl

A clone and refresh of https://github.com/arschles/envtpl

Added:

  • support for go mod
  • reading template from STDIN

Render Go templates from Environment Variables. Let's say you have the following template file called pwd.tpl:

The current working directory is {{.PWD}}

Run envtpl pwd.tpl, and you'll see the following printed to STDOUT:

The current working directory is /path/you/executed/from

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