hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 3f0f186b91e89f8958821d25820a7a73d29fb4be
parent eabe8e1a986507ce19b42046beaefd42bd1075bc
Author: bep <bjorn.erik.pedersen@gmail.com>
Date:   Tue, 20 Jan 2015 13:31:02 +0100

Add inline doc for Apply

Diffstat:
Mtpl/template.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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