MCPcopy Index your code
hub / github.com/zeromicro/go-zero / From

Function From

tools/goctl/util/stringx/string.go:20–22  ·  view source on GitHub ↗

From converts the input text to String and returns it

(data string)

Source from the content-addressed store, hash-verified

18
19// From converts the input text to String and returns it
20func From(data string) String {
21 return String{source: data}
22}
23
24// IsEmptyOrSpace returns true if the length of the string value is 0 after call strings.TrimSpace, or else returns false
25func (s String) IsEmptyOrSpace() bool {

Callers 15

ParseFunction · 0.92
convertColumnsFunction · 0.92
ConvertDataTypeFunction · 0.92
getTableFieldsFunction · 0.92
genCacheKeyFunction · 0.92
TitleMethod · 0.92
CamelMethod · 0.92
SnakeMethod · 0.92
UntitleMethod · 0.92
UpperMethod · 0.92
LowerMethod · 0.92
WithMethod · 0.92

Calls

no outgoing calls

Tested by 8

TestGenCacheKeysFunction · 0.74
GetServiceNameMethod · 0.74
TestString_Snake2CamelFunction · 0.56
TestString_Camel2SnakeFunction · 0.56
TestTitleFunction · 0.56
TestUntitleFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…