template

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(w io.Writer, text, ldelim, rdelim string, fm template.FuncMap) error

func RenderStrings

func RenderStrings(texts []string, ldelim, rdelim string, fm template.FuncMap) ([]string, error)

RenderStrings renders several strings in a single context. This makes it possible to interact between several templates with variable declarations, etc. This could generate empty strings in the output that have to be dealt with.

Types

This section is empty.

Jump to

Keyboard shortcuts

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