Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gobeam/stringy
/ functions
Functions
101 in github.com/gobeam/stringy
⨍
Functions
101
◇
Types & classes
2
↓ 62 callers
Function
New
New func returns pointer to input struct
stringy.go:54
↓ 27 callers
Function
getInput
(i input)
helper.go:37
↓ 16 callers
Method
ToLower
()
stringy.go:46
↓ 11 callers
Method
Get
()
stringy.go:31
↓ 10 callers
Method
Pad
(length int, with, padType string)
stringy.go:36
↓ 9 callers
Method
ToUpper
()
stringy.go:47
↓ 5 callers
Method
CamelCase
(rule ...string)
stringy.go:27
↓ 5 callers
Method
SnakeCase
(rule ...string)
stringy.go:43
↓ 5 callers
Function
caseHelper
(input string, isCamel bool, rule ...string)
helper.go:12
↓ 4 callers
Method
Between
(start, end string)
stringy.go:24
↓ 4 callers
Method
Boolean
()
stringy.go:25
↓ 3 callers
Method
ContainsAll
(check ...string)
stringy.go:28
↓ 3 callers
Method
Delimited
(delimiter string, rule ...string)
stringy.go:29
↓ 3 callers
Method
First
(length int)
stringy.go:30
↓ 3 callers
Method
Last
(length int)
stringy.go:33
↓ 3 callers
Method
Prefix
(with string)
stringy.go:49
↓ 3 callers
Method
ReplaceFirst
(search, replace string)
stringy.go:38
↓ 3 callers
Method
Shuffle
()
stringy.go:41
↓ 3 callers
Method
Suffix
(with string)
stringy.go:50
↓ 3 callers
Method
Tease
(length int, indicator string)
stringy.go:44
↓ 3 callers
Function
ucfirst
(val string)
helper.go:62
↓ 2 callers
Method
Acronym
()
stringy.go:23
↓ 2 callers
Method
KebabCase
(rule ...string)
stringy.go:32
↓ 2 callers
Method
Lines
()
stringy.go:35
↓ 2 callers
Method
PascalCase
(rule ...string)
stringy.go:26
↓ 2 callers
Method
RemoveSpecialCharacter
()
stringy.go:37
↓ 2 callers
Method
ReplaceLast
(search, replace string)
stringy.go:39
↓ 2 callers
Method
Reverse
()
stringy.go:40
↓ 2 callers
Method
Surround
(with string)
stringy.go:42
↓ 2 callers
Method
Title
()
stringy.go:45
↓ 2 callers
Function
contains
(slice []string, item string)
helper.go:28
↓ 2 callers
Function
replaceStr
(input, search, replace, types string)
helper.go:46
↓ 1 callers
Method
LcFirst
()
stringy.go:34
↓ 1 callers
Method
UcFirst
()
stringy.go:48
Method
Acronym
Acronym func returns acronym of input string. You can chain to upper which with make result all upercase or ToLower which will make result all lower c
stringy.go:61
Method
Between
Between takes two string params start and end which and returns value which is in middle of start and end part of input. You can chain to upper which
stringy.go:76
Method
Boolean
Boolean func returns boolean value of string value like on, off, 0, 1, yes, no returns boolean value of string input. You can chain this function on o
stringy.go:101
Method
CamelCase
CamelCase is variadic function which takes one Param rule i.e slice of strings and it returns input type string in camel case form and rule helps to o
stringy.go:122
Method
ContainsAll
ContainsAll is variadic function which takes slice of strings as param and checks if they are present in input and returns boolean value accordingly
stringy.go:156
Method
Delimited
Delimited is variadic function that takes two params delimiter and slice of strings i.e rule. It joins the string by passed delimeter. Rule param help
stringy.go:170
Method
First
First returns first n characters from provided input. It removes all spaces in string before doing so.
stringy.go:181
Method
Get
Get simply returns result and can be chained on function which returns StringManipulation interface
stringy.go:192
Method
KebabCase
KebabCase is variadic function that takes one Param slice of strings named rule and it returns passed string in kebab case form. Rule param helps to o
stringy.go:202
Method
Last
Last returns last n characters from provided input. It removes all spaces in string before doing so.
stringy.go:210
Method
LcFirst
LcFirst simply returns result by lower casing first letter of string and it can be chained on function which return StringManipulation interface
stringy.go:223
Method
Lines
Lines returns slice of strings by removing white space characters
stringy.go:232
Method
Pad
Pad takes three param length i.e total length to be after padding, with i.e what to pad with and pad type which can be ("both" or "left" or "right")
stringy.go:242
Method
PascalCase
PascalCase is variadic function which takes one Param rule i.e slice of strings and it returns input type string in camel case form and rule helps to
stringy.go:143
Method
Prefix
Prefix makes sure that string is prefixed with a given string
stringy.go:388
Method
RemoveSpecialCharacter
RemoveSpecialCharacter removes all special characters and returns the string it can be chained on function which return StringManipulation interface
stringy.go:269
Method
ReplaceFirst
ReplaceFirst takes two param search and replace. It returns string by searching search sub string and replacing it with replace substring on first occ
stringy.go:287
Method
ReplaceLast
ReplaceLast takes two param search and replace it return string by searching search sub string and replacing it with replace substring on last occurre
stringy.go:296
Method
Reverse
Reverse reverses the passed strings it can be chained on function which return StringManipulation interface
stringy.go:303
Method
Shuffle
Shuffle shuffles the given string randomly it can be chained on function which return StringManipulation interface
stringy.go:314
Method
SnakeCase
SnakeCase is variadic function that takes one Param slice of strings named rule and it returns passed string in snake case form. Rule param helps to o
stringy.go:330
Method
Suffix
Suffix makes sure that string is suffixed with a given string
stringy.go:398
Method
Surround
Surround takes one param with which is used to surround user input and it can be chained on function which return StringManipulation interface.
stringy.go:339
Method
Tease
Tease takes two params length and indicator and it shortens given string on passed length and adds indicator on end it can be chained on function whic
stringy.go:347
Function
TestInput_Acronym
(t *testing.T)
stringy_test.go:9
Function
TestInput_Between
(t *testing.T)
stringy_test.go:17
Function
TestInput_BooleanError
(t *testing.T)
stringy_test.go:62
Function
TestInput_BooleanFalse
(t *testing.T)
stringy_test.go:51
Function
TestInput_BooleanTrue
(t *testing.T)
stringy_test.go:40
Function
TestInput_CamelCase
(t *testing.T)
stringy_test.go:78
Function
TestInput_CamelCaseNoRule
(t *testing.T)
stringy_test.go:86
Function
TestInput_CamelCaseOddRuleError
(t *testing.T)
stringy_test.go:94
Function
TestInput_ContainsAll
(t *testing.T)
stringy_test.go:128
Function
TestInput_Delimited
(t *testing.T)
stringy_test.go:138
Function
TestInput_DelimitedNoDelimeter
(t *testing.T)
stringy_test.go:146
Function
TestInput_EmptyBetween
(t *testing.T)
stringy_test.go:24
Function
TestInput_EmptyNoMatchBetween
(t *testing.T)
stringy_test.go:32
Function
TestInput_First
(t *testing.T)
stringy_test.go:355
Function
TestInput_FirstError
(t *testing.T)
stringy_test.go:363
Function
TestInput_KebabCase
(t *testing.T)
stringy_test.go:154
Function
TestInput_Last
(t *testing.T)
stringy_test.go:383
Function
TestInput_LastError
(t *testing.T)
stringy_test.go:373
Function
TestInput_LcFirst
(t *testing.T)
stringy_test.go:162
Function
TestInput_Lines
(t *testing.T)
stringy_test.go:194
Function
TestInput_Pad
(t *testing.T)
stringy_test.go:205
Function
TestInput_PadInvalidLength
(t *testing.T)
stringy_test.go:218
Function
TestInput_PascalCaseNoRule
(t *testing.T)
stringy_test.go:107
Function
TestInput_PascalCaseOddRuleError
(t *testing.T)
stringy_test.go:115
Function
TestInput_Prefix
(t *testing.T)
stringy_test.go:391
Function
TestInput_RemoveSpecialCharacter
(t *testing.T)
stringy_test.go:235
Function
TestInput_ReplaceFirst
(t *testing.T)
stringy_test.go:243
Function
TestInput_ReplaceFirstEmptyInput
(t *testing.T)
stringy_test.go:251
Function
TestInput_ReplaceLast
(t *testing.T)
stringy_test.go:259
Function
TestInput_Reverse
(t *testing.T)
stringy_test.go:267
Function
TestInput_Shuffle
(t *testing.T)
stringy_test.go:275
Function
TestInput_SnakeCase
(t *testing.T)
stringy_test.go:283
Function
TestInput_Suffix
(t *testing.T)
stringy_test.go:405
Function
TestInput_Surround
(t *testing.T)
stringy_test.go:291
Function
TestInput_Tease
(t *testing.T)
stringy_test.go:299
Function
TestInput_TeaseEmpty
(t *testing.T)
stringy_test.go:307
Function
TestInput_Title
(t *testing.T)
stringy_test.go:315
Function
TestInput_UcFirst
(t *testing.T)
stringy_test.go:323
Method
Title
Title makes first letter of each word of user input to uppercase it can be chained on function which return StringManipulation interface
stringy.go:364
Method
ToLower
ToLower makes all string of user input to lowercase it can be chained on function which return StringManipulation interface
stringy.go:357
Method
ToUpper
ToUpper makes all string of user input to uppercase it can be chained on function which return StringManipulation interface
stringy.go:375
Method
UcFirst
UcFirst makes first word of user input to uppercase it can be chained on function which return StringManipulation interface
stringy.go:382
next →
1–100 of 101, ranked by callers