package xstrings
import "git.sr.ht/~jamesponddotco/xstd-go/xstrings"
Package xstrings provides additional functions to manipulate strings.
Index ¶
- Constants
- func Join(str ...string) string
- func JoinWithSeparator(separator string, str ...string) string
- func Remove(str, set string) string
Constants ¶
const ( LowercaseLetters string = "abcdefghijklmnopqrstuvwxyz" UppercaseLetters string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" Letters string = LowercaseLetters + UppercaseLetters Numbers string = "0123456789" Symbols string = `!"#$%&'()*+,-./:;<=>?@[\]^_{|}~` Space string = " " AllCharacters string = Letters + Numbers + Symbols + Space )
Functions ¶
func Join ¶
Join concatenates strings to create a single string faster than strings.Join().
func JoinWithSeparator ¶
JoinWithSeparator concatenates strings to create a single string with a separator between each string.
func Remove ¶
Remove returns a copy of the string with all occurrences of the given characters removed.
Source Files ¶
- Version
- v0.13.1 (latest)
- Published
- Jan 29, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 4 days ago –
Tools for package owners.