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
@@ -122,6 +122,7 @@ Within those templates, the object emitted by docker-gen will have [this structu
122
122
**`hasPrefix $prefix $string`*: Returns whether `$prefix` is a prefix of `$string`.
123
123
**`hasSuffix $suffix $string`*: Returns whether `$suffix` is a suffix of `$string`.
124
124
**`json $value`*: Returns the JSON representation of `$value` as a `string`.
125
+
**`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.
125
126
**`last $array`*: Returns the last value of an array.
126
127
**`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)
127
128
**`sha1 $string`*: Returns the hexadecimal representation of the SHA1 hash of `$string`.
0 commit comments