xstrings

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 2 Imported by: 4

Documentation

Overview

Package xstrings provides additional functions to manipulate strings.

Index

Constants

View Source
const (
	LowercaseLetters string = "abcdefghijklmnopqrstuvwxyz"
	UppercaseLetters string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	Letters          string = LowercaseLetters + UppercaseLetters
	Numbers          string = "0123456789"
	Symbols          string = `!"#$%&'()*+,-./:;<=>?@[\]^_{|}~`
	Space            string = " "
	AllCharacters    string = Letters + Numbers + Symbols + Space
)

Variables

This section is empty.

Functions

func Join

func Join(str ...string) string

Join concatenates strings to create a single string faster than strings.Join().

func JoinWithSeparator

func JoinWithSeparator(separator string, str ...string) string

JoinWithSeparator concatenates strings to create a single string with a separator between each string.

func Remove

func Remove(str, set string) string

Remove returns a copy of the string with all occurrences of the given characters removed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL