Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl
diff options
context:
space:
mode:
authorbep <bjorn.erik.pedersen@gmail.com>2015-01-20 15:31:02 +0300
committerbep <bjorn.erik.pedersen@gmail.com>2015-01-20 15:31:02 +0300
commit3f0f186b91e89f8958821d25820a7a73d29fb4be (patch)
treef7d467dbd361180b5e605595160c7ea06800534b /tpl
parenteabe8e1a986507ce19b42046beaefd42bd1075bc (diff)
Add inline doc for Apply
Diffstat (limited to 'tpl')
-rw-r--r--tpl/template.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tpl/template.go b/tpl/template.go
index 84a3fd146..97b2e5bbb 100644
--- a/tpl/template.go
+++ b/tpl/template.go
@@ -544,6 +544,7 @@ func Where(seq, key interface{}, args ...interface{}) (r interface{}, err error)
}
}
+// Apply, given a map, array, or slice, returns a new slice with the function fname applied over it.
func Apply(seq interface{}, fname string, args ...interface{}) (interface{}, error) {
if seq == nil {
return make([]interface{}, 0), nil