strings

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package strings contains utility functions for working with strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeDupeStrSlice

func DeDupeStrSlice(ss []string) []string

DeDupeStrSlice deduplicates a slices of strings

func Sanitize added in v0.1.1

func Sanitize(s string) string

Sanitize sends a string to lowercase, trims whitespace, replaces all non alphanumeric characters with a dash, removes consecutive dashes, and trims any leading or trailing dashes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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