func HasPrefix(s, prefix string) bool { … } func HasSuffix(s, suffix string) bool { … } func IndexByte(s string, c byte) int { … } func Index(s, substr string) int { … } func Cut(s, sep string) (before, after string, found bool) { … } func CutPrefix(s, prefix string) (after string, found bool) { … } func CutSuffix(s, suffix string) (before string, found bool) { … } func TrimPrefix(s, prefix string) string { … } func TrimSuffix(s, suffix string) string { … } func Clone(s string) string { … }