MCPcopy Create free account
hub / github.com/brimdata/super / write

Method write

compiler/sfmt/format.go:31–44  ·  view source on GitHub ↗
(args ...any)

Source from the content-addressed store, hash-verified

29}
30
31func (f *formatter) write(args ...any) {
32 f.flush()
33 if f.needTab {
34 f.writeTab()
35 }
36 var s string
37 if len(args) == 1 {
38 s = args[0].(string)
39 } else if len(args) > 1 {
40 format := args[0].(string)
41 s = fmt.Sprintf(format, args[1:]...)
42 }
43 f.WriteString(s)
44}
45
46func (f *formatter) open(args ...any) {
47 if len(args) > 0 {

Callers 15

openMethod · 0.95
spaceMethod · 0.95
assignmentsMethod · 0.45
assignmentMethod · 0.45
exprsMethod · 0.45
exprMethod · 0.45
funcRefAsCallMethod · 0.45
lambdaMethod · 0.45
arrayElemsMethod · 0.45
binaryMethod · 0.45
maybewriteMethod · 0.45
nextMethod · 0.45

Calls 2

flushMethod · 0.95
writeTabMethod · 0.95

Tested by

no test coverage detected