MCPcopy
hub / github.com/ent/ent / WriteByte

Method WriteByte

dialect/sql/builder.go:3020–3026  ·  view source on GitHub ↗

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

(c byte)

Source from the content-addressed store, hash-verified

3018
3019// WriteByte wraps the Buffer.WriteByte to make it chainable with other methods.
3020func (b *Builder) WriteByte(c byte) *Builder {
3021 if b.sb == nil {
3022 b.sb = &strings.Builder{}
3023 }
3024 b.sb.WriteByte(c)
3025 return b
3026}
3027
3028// WriteString wraps the Buffer.WriteString to make it chainable with other methods.
3029func (b *Builder) WriteString(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 3

TestBuilderFunction · 0.64
TestSelector_SelectExprFunction · 0.64