shithub: hugo

Download patch

ref: 3f0f186b91e89f8958821d25820a7a73d29fb4be
parent: eabe8e1a986507ce19b42046beaefd42bd1075bc
author: bep <[email protected]>
date: Tue Jan 20 08:31:02 EST 2015

Add inline doc for Apply

--- a/tpl/template.go
+++ b/tpl/template.go
@@ -544,6 +544,7 @@
 	}
 }
 
+// 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