Discover Packages
github.com/qiniu/x
stringslice
package
Version:
v1.19.3
Opens a new window with list of versions in this module.
Published: Oct 15, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 2 modules, 2 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Capitalize(a)
Repeat(a, count)
Replace(a, old, new, n)
ReplaceAll(a, old, new)
ToLower(a)
ToTitle(a)
ToUpper(a)
Trim(a, cutset)
TrimLeft(a, cutset)
TrimPrefix(a, prefix)
TrimRight(a, cutset)
TrimSpace(a)
TrimSuffix(a, suffix)
Types
Source Files
Documentation
Documentation
¶
func Capitalize(a []string) []string
func Repeat(a []string, count int) []string
func Replace(a []string, old, new string, n int) []string
func ReplaceAll(a []string, old, new string) []string
func ToLower(a []string) []string
func ToTitle(a []string) []string
func ToUpper(a []string) []string
func Trim(a []string, cutset string) []string
func TrimLeft(a []string, cutset string) []string
func TrimPrefix(a []string, prefix string) []string
func TrimRight(a []string, cutset string) []string
func TrimSpace(a []string) []string
func TrimSuffix(a []string, suffix string) []string
Capitalize capitalizes the first letter of each string in the slice.
Repeat repeats each string in the slice count times.
Replace replaces all occurrences of old in each string in the slice with new.
ReplaceAll replaces all occurrences of old in each string in the slice with new.
ToLower lower-cases all strings in the slice.
ToTitle title-cases all strings in the slice.
ToUpper upper-cases all strings in the slice.
Trim removes leading and trailing white space from each string in the slice.
TrimLeft removes leading white space from each string in the slice.
TrimPrefix removes leading prefix from each string in the slice.
TrimRight removes trailing white space from each string in the slice.
TrimSpace removes leading and trailing white space from each string in the slice.
TrimSuffix removes trailing suffix from each string in the slice.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.