mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 20:14:58 +00:00
Add inline doc for Apply
This commit is contained in:
1 parent
eabe8e1a98
commit
3f0f186b91
1 file changed
+1
@@ -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) {
|
func Apply(seq interface{}, fname string, args ...interface{}) (interface{}, error) {
|
||||||
if seq == nil {
|
if seq == nil {
|
||||||
return make([]interface{}, 0), nil
|
return make([]interface{}, 0), nil
|
||||||
|
|||||||
Reference in new issue
Block a user