templating

package module
v0.0.0-...-e32ad05 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 8 Imported by: 0

README

Templating

GoDoc

Things to help with Go templates.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(from string, to string, data interface{}) error

Render copies the file tree from "from" to "to" while running text/template against any ".tmpl" files found (removing the .tmpl extension afterward)

func RenderFS

func RenderFS(from afero.Fs, to afero.Fs, data interface{}) error

RenderFS is the same as Render but takes afero.Fs for from/to instead of filesystem paths

Types

This section is empty.

Jump to

Keyboard shortcuts

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