MCPcopy Index your code
hub / github.com/expr-lang/expr / printBool

Function printBool

internal/spew/common.go:144–150  ·  view source on GitHub ↗

printBool outputs a boolean value as true or false to Writer w.

(w io.Writer, val bool)

Source from the content-addressed store, hash-verified

142
143// printBool outputs a boolean value as true or false to Writer w.
144func printBool(w io.Writer, val bool) {
145 if val {
146 w.Write(trueBytes)
147 } else {
148 w.Write(falseBytes)
149 }
150}
151
152// printInt outputs a signed integer value to Writer w.
153func printInt(w io.Writer, val int64, base int) {

Callers 2

formatMethod · 0.85
dumpMethod · 0.85

Calls 1

WriteMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…