Skip to content

Commit a29489d

Browse files
committed
Document "keys" function
1 parent e9a18ea commit a29489d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ Within those templates, the object emitted by docker-gen will have [this structu
118118
* *`hasPrefix $prefix $string`*: Returns whether `$prefix` is a prefix of `$string`.
119119
* *`hasSuffix $suffix $string`*: Returns whether `$suffix` is a suffix of `$string`.
120120
* *`json $value`*: Returns the JSON representation of `$value` as a `string`.
121+
* *`keys $map`*: Returns the keys from `$map`. If `$map` is `nil`, a `nil` is returned. If `$map` is not a `map`, an error will be thrown.
121122
* *`last $array`*: Returns the last value of an array.
122123
* *`replace $string $old $new $count`*: Replaces up to `$count` occurences of `$old` with `$new` in `$string`. Alias for [`strings.Replace`](http://golang.org/pkg/strings/#Replace)
123124
* *`sha1 $string`*: Returns the hexadecimal representation of the SHA1 hash of `$string`.

0 commit comments

Comments
 (0)