Go · Function
strings.Split
strings.Split divides a string at every occurrence of a separator. It returns the pieces as a slice, including empty pieces created by adjacent separators.
Last updated
Syntax
func Split(s, sep string) []stringIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
SplitNSplitAfterSplitAfterNCutFields