mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Add inline doc for Apply
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user