Split splits a string into substrings. Splits on whitespace when called with no arguments. When called with a separator, splits on that separator. When called with a separator and a maximum number of splits, splits on that separator at most max_splits times. (Can be called with null as the separator if you want to split on whitespace while still specifying max_splits.)
Mimics the behavior of Python's string.split in edge cases, except for splitting on the empty string, which instead produces an array of single-character strings.
Split is referenced in 2 repositoriesgithub.com/bakape/meguca
- 1 reference in server/websockets/postUpdates.go
- 1 reference in rethinkdb.go