SplitAfter in Go

Posted by GoDoc
Public (Editable by Users)

SplitAfter slices s into all substrings after each instance of sep and returns a slice of those substrings.

Go
Edit
package main

import (
	"fmt"
	"strings"
)

func main() {
	fmt.Printf("%q\n", strings.SplitAfter("a,b,c", ","))
}