Skip to content

Commit dce53d7

Browse files
committed
Merge pull request #155 from christopherhwood/master
Updated ReadMe to Reflect splitN
2 parents 18e1821 + b1a5ea8 commit dce53d7

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
@@ -352,6 +352,7 @@ For example, this is a JSON version of an emitted RuntimeContainer struct:
352352
* *`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)
353353
* *`sha1 $string`*: Returns the hexadecimal representation of the SHA1 hash of `$string`.
354354
* *`split $string $sep`*: Splits `$string` into a slice of substrings delimited by `$sep`. Alias for [`strings.Split`](http://golang.org/pkg/strings/#Split)
355+
* *`splitN $string $sep $count`*: Splits `$string` into a slice of substrings delimited by `$sep`, with number of substrings returned determined by `$count`. Alias for [`strings.SplitN`](https://golang.org/pkg/strings/#SplitN)
355356
* *`trimPrefix $prefix $string`*: If `$prefix` is a prefix of `$string`, return `$string` with `$prefix` trimmed from the beginning. Otherwise, return `$string` unchanged.
356357
* *`trimSuffix $suffix $string`*: If `$suffix` is a suffix of `$string`, return `$string` with `$suffix` trimmed from the end. Otherwise, return `$string` unchanged.
357358
* *`trim $string`*: Removes whitespace from both sides of `$string`.

0 commit comments

Comments
 (0)