mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Add inline doc for Apply
This commit is contained in:
parent
eabe8e1a98
commit
3f0f186b91
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue