stringx

package
v0.0.0-...-6574a54 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package stringx has string utilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColumnInches

func ColumnInches(s string) float64

func ExtractNames

func ExtractNames(s string) []string

func First

func First(ss ...string) string

First non-blank string

func LastCut

func LastCut(s, sep string) (before, after string, found bool)

func Lines

func Lines(s string) float64

func RemoveAllWhitespace

func RemoveAllWhitespace(s string) string

func RemoveParens

func RemoveParens(s string) string

RemoveParens removes parentheses and any text that is inside of them.

func SlugifyFilename

func SlugifyFilename(s string) string

func SlugifyURL

func SlugifyURL(s string) string

func WordCount

func WordCount(s string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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