mirror of
https://github.com/go-task/task.git
synced 2026-07-01 00:24:30 +00:00
feat: merge template func should support variadic list of maps (#1464)
This commit is contained in:
@@ -1292,8 +1292,8 @@ Task also adds the following functions:
|
||||
based on a base path (first argument). The same as Go's
|
||||
[filepath.Rel](https://pkg.go.dev/path/filepath#Rel).
|
||||
- `merge`: Creates a new map that is a copy of the first map with the keys of
|
||||
the second map merged into it. If there are duplicate keys, the value of the
|
||||
second map is used.
|
||||
each subsequent map merged into it. If there is a duplicate key, the value of
|
||||
the last map with that key is used.
|
||||
- `spew`: Returns the Go representation of a specific variable. Useful for
|
||||
debugging. Uses the [davecgh/go-spew](https://github.com/davecgh/go-spew)
|
||||
package.
|
||||
|
||||
Reference in New Issue
Block a user