Documentation
¶
Overview ¶
Package strings provides string manipulation utility functions.
Index ¶
- func Contains(s, substr string) bool
- func HasPrefix(s, prefix string) bool
- func HasSuffix(s, suffix string) bool
- func Join(parts []string, sep string) string
- func Repeat(s string, count int) string
- func Replace(s, old, new string, n int) string
- func Split(s, sep string) []string
- func ToLower(s string) string
- func ToUpper(s string) string
- func Trim(s string) string
- func TrimLeft(s string) string
- func TrimRight(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Replace ¶
Replace replaces occurrences of old with new in s. n is the number of replacements: -1 means replace all.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.