text

package
v0.0.0-...-0e8a65c Latest Latest
Warning

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

Go to latest
Published: May 20, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CONSONANTS = "bcdfghjklmnpqrstvwxyz"
View Source
const LOWERCASE = "abcdefghijklmnopqrstuvwxyz"
View Source
const MAXPREFIXLENGTH = 4
View Source
const NUMBERS = "1234567890"
View Source
const SPECIALS = "!@#$%^&*-_"
View Source
const UPPERCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
View Source
const VOWELS = "aeoui"

Variables

This section is empty.

Functions

func Add

func Add(data []string, otherList []string) []string

String Slice////////////////////////////////////////////////

func Equals

func Equals(data []string, otherList []string) bool

func FileExtension

func FileExtension(str string) string

File/////////////////////////////////////////////////////////////////////

func Format

func Format(formatStr string, a ...interface{}) string

String Format////////////////////////////////////////////////

func GenerateRandomString

func GenerateRandomString(length int) string

Random String////////////////////////////////////////////////////////////

func GenerateRandomStringSpecial

func GenerateRandomStringSpecial(length int) string

func Includes

func Includes(data []string, arg string) bool

func Jaro

func Jaro(s1, s2 string) float64

jaro///////////////////////////////////////////////////////////////////////

func JaroWinkler

func JaroWinkler(s1, s2 string) (distance float64)

jaroWinkler////////////////////////////////////////////////////////////////

func Ordinise

func Ordinise(number int) string

Ordinise///////////////////////////////////////////////////////

func SetBoostThreshold

func SetBoostThreshold(bt float64) error

func SetPrefixScale

func SetPrefixScale(p float64) error

func Subtract

func Subtract(data []string, excludeList []string) []string

func ToCamel

func ToCamel(s string) string

Snake to Camel////////////////////////////////////////////////////////////

func ToCamelLower

func ToCamelLower(s string) string

func ToMilitary

func ToMilitary(s string) string

Military/////////////////////////////////////////////////////////////////

func ToMorse

func ToMorse(s string) string

Morse////////////////////////////////////////////////////////////////////

func ToOrdinise

func ToOrdinise(number int) string

func ToReverse

func ToReverse(s string) string

Reverse//////////////////////////////////////////////////////////////////

func ToSnake

func ToSnake(s string) string

Camel to Snake////////////////////////////////////////////////////////////

func ToSnakeUpper

func ToSnakeUpper(s string) string

func ToSpinal

func ToSpinal(s string) string

Spinal////////////////////////////////////////////////////////////////////

func ToTitle

func ToTitle(str string) string

Title////////////////////////////////////////////////////////////////////

func ToTrain

func ToTrain(s string) string

Train////////////////////////////////////////////////////////////////////

Types

This section is empty.

Jump to

Keyboard shortcuts

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