You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,7 @@ Within those templates, the object emitted by docker-gen will have [this structu
118
118
**`hasPrefix $prefix $string`*: Returns whether `$prefix` is a prefix of `$string`.
119
119
**`hasSuffix $suffix $string`*: Returns whether `$suffix` is a suffix of `$string`.
120
120
**`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.
121
122
**`last $array`*: Returns the last value of an array.
122
123
**`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)
123
124
**`sha1 $string`*: Returns the hexadecimal representation of the SHA1 hash of `$string`.
0 commit comments