MCPcopy
hub / github.com/ent/ent / WriteString

Method WriteString

dialect/sql/builder.go:3029–3035  ·  view source on GitHub ↗

WriteString wraps the Buffer.WriteString to make it chainable with other methods.

(s string)

Source from the content-addressed store, hash-verified

3027
3028// WriteString wraps the Buffer.WriteString to make it chainable with other methods.
3029func (b *Builder) WriteString(s string) *Builder {
3030 if b.sb == nil {
3031 b.sb = &strings.Builder{}
3032 }
3033 b.sb.WriteString(s)
3034 return b
3035}
3036
3037// S is a short version of WriteString.
3038func (b *Builder) S(s string) *Builder {

Callers 15

StringMethod · 0.95
StringMethod · 0.95
StringMethod · 0.95
StringMethod · 0.95
StringMethod · 0.95
StringMethod · 0.95
StringMethod · 0.95
StringMethod · 0.95
StringMethod · 0.95
StringMethod · 0.95
StringMethod · 0.95
StringMethod · 0.95

Calls

no outgoing calls

Tested by 15

mockStdinFunction · 0.64
SelectFunction · 0.64
NicknameSearchFunction · 0.64
addConflictsFunction · 0.64
MarshalGQLMethod · 0.64
TestBuilderFunction · 0.64
TestSelector_OrderByExprFunction · 0.64
TestSelector_SelectExprFunction · 0.64
TestMultipleFromFunction · 0.64