text

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: GPL-3.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(text string) string

func CleanupOneLine added in v0.8.0

func CleanupOneLine(text string) string

func CleanupOneLineArray added in v0.8.0

func CleanupOneLineArray(texts []string) []string

func Empty

func Empty(s string) bool

Empty tell if the string is considered empty once space and not graphics characters are removed

func Safe

func Safe(s string) bool

Safe will tell if a character in the string is considered unsafe Currently trigger on unicode control character except \n, \t and \r

func SafeOneLine added in v0.8.0

func SafeOneLine(s string) bool

SafeOneLine will tell if a character in the string is considered unsafe Currently trigger on all unicode control character

func ValidUrl

func ValidUrl(s string) bool

ValidUrl will tell if the string contains what seems to be a valid URL

Types

This section is empty.

Jump to

Keyboard shortcuts

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