strhlp

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter added in v0.17.0

func Filter(f func(string) bool, s []string) []string

Filter will run the function for every entry of the slice and will return a new slice with the entries that return true when used on the function

func Map added in v0.17.0

func Map(f func(string) string, s []string) []string

Map will apply the map function provided on every entry of the string slice and return a slice with the changes

func Normalize

func Normalize(s string) string

Normalize a string removes all non-english characters and lower case the string to help compare it with other strings

func Search(s string, list []string) int

Search will search for a exact match of the string on the slide provided and if found will return its index position, or -1 if not

func Unique added in v0.24.0

func Unique(ss []string) []string

Unique will remove all duplicated strings from the slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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