MCPcopy Create free account
hub / github.com/araddon/qlbridge / NewStringValue

Function NewStringValue

value/value.go:506–508  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

504func (m BoolValue) ToString() string { return strconv.FormatBool(m.v) }
505
506func NewStringValue(v string) StringValue {
507 return StringValue{v: v}
508}
509
510func (m StringValue) Nil() bool { return len(m.v) == 0 }
511func (m StringValue) Err() bool { return false }

Callers 15

FromExprMethod · 0.92
ValueArrayFunction · 0.92
toStringEvalFunction · 0.92
unsignEvalFunction · 0.92
uuidGenerateEvalFunction · 0.92
lowerCaseEvalFunction · 0.92
upperCaseEvalFunction · 0.92
titleCaseEvalFunction · 0.92
subStringEvalFunction · 0.92
stripEvalFunction · 0.92
replaceEvalFunction · 0.92
joinEvalFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestNestedFunction · 0.74
TestNamespacesFunction · 0.74
BenchmarkVmExecuteFunction · 0.74
TestSqlDeleteFunction · 0.74
TestValueNumberFunction · 0.68
TestStringFunction · 0.68
TestSliceValuesFunction · 0.68
TestCoerceIntsFunction · 0.68
TestCastFunction · 0.68
TestEqualFunction · 0.68
TestValueToStringFunction · 0.68