(tag string, in reflect.Value)
| 363 | } |
| 364 | |
| 365 | func (e *encoder) boolv(tag string, in reflect.Value) { |
| 366 | var s string |
| 367 | if in.Bool() { |
| 368 | s = "true" |
| 369 | } else { |
| 370 | s = "false" |
| 371 | } |
| 372 | e.emitScalar(s, "", tag, yaml_PLAIN_SCALAR_STYLE, nil, nil, nil, nil) |
| 373 | } |
| 374 | |
| 375 | func (e *encoder) intv(tag string, in reflect.Value) { |
| 376 | s := strconv.FormatInt(in.Int(), 10) |