stringutils

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdvancedStringSimilarity

func AdvancedStringSimilarity(a string, b string) float64

AdvancedStringSimilarity is like StringSimilarity but boosts the value if a appears directly in b.

func Capitalize

func Capitalize(s string) string

Capitalize returns the string with the first letter capitalized.

func ContainsUnicodeLetters

func ContainsUnicodeLetters(s string) bool

ContainsUnicodeLetters tells you if unicode characters are inside the string.

func Plural

func Plural(count int, singular string) string

Plural returns the number concatenated to the proper pluralization of the word.

func PrettyPrint

func PrettyPrint(obj interface{})

PrettyPrint prints the object as indented JSON data on the console.

func RemoveSpecialCharacters

func RemoveSpecialCharacters(s string) string

RemoveSpecialCharacters ...

func StringSimilarity

func StringSimilarity(a string, b string) float64

StringSimilarity returns 1.0 if the strings are equal and goes closer to 0 when they are different.

Types

This section is empty.

Jump to

Keyboard shortcuts

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