/funcmap

Go template functions

Primary LanguageGoGNU General Public License v3.0GPL-3.0

funcmap

Build Status

Go template functions.

import "github.com/gomatic/funcmap"

...

template.New(name).
    Funcs(funcmap.Map).
    Parse(templateSource).
    Execute(&result, templateVariables)