str

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package str provides functions for removing unwanted characters from strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripChars

func StripChars(s string) string

StripChars removes all the incompatible characters that cannot be used for groups and author names.

Example:

StripChars("Café!") = "Café"
StripChars(".~[[@]hello[@]]~.") = "hello"

func StripStart

func StripStart(s string) string

StripStart removes the non-alphanumeric characters from the start of the string.

Example:

StripStart(" - [*] checkbox") = "checkbox"

func TrimSP

func TrimSP(s string) string

TrimSP removes duplicate spaces from the string.

Example:

TrimSP("hello              world") = "hello world"

Types

This section is empty.

Jump to

Keyboard shortcuts

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