AppendBool appends a bool to the slice
(b []byte, t bool)
| 233 | |
| 234 | // AppendBool appends a bool to the slice |
| 235 | func AppendBool(b []byte, t bool) []byte { |
| 236 | if t { |
| 237 | return append(b, mtrue) |
| 238 | } |
| 239 | return append(b, mfalse) |
| 240 | } |
| 241 | |
| 242 | // AppendString appends a string as a MessagePack 'str' to the slice |
| 243 | func AppendString(b []byte, s string) []byte { |
no outgoing calls
searching dependent graphs…