xstrings

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 2 Imported by: 3

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