Boolean encodes v as a JSON boolean
(v bool)
| 70 | |
| 71 | // Boolean encodes v as a JSON boolean |
| 72 | func (jv Value) Boolean(v bool) { |
| 73 | *jv.scratch = strconv.AppendBool((*jv.scratch)[:0], v) |
| 74 | jv.w.Write(*jv.scratch) |
| 75 | } |
| 76 | |
| 77 | // Base64EncodeBytes writes v as a base64 value in JSON string |
| 78 | func (jv Value) Base64EncodeBytes(v []byte) { |