printBool outputs a boolean value as true or false to Writer w.
(w io.Writer, val bool)
| 142 | |
| 143 | // printBool outputs a boolean value as true or false to Writer w. |
| 144 | func 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. |
| 153 | func printInt(w io.Writer, val int64, base int) { |