(tag string, in reflect.Value)
| 383 | } |
| 384 | |
| 385 | func (e *encoder) timev(tag string, in reflect.Value) { |
| 386 | t := in.Interface().(time.Time) |
| 387 | s := t.Format(time.RFC3339Nano) |
| 388 | e.emitScalar(s, "", tag, yaml_PLAIN_SCALAR_STYLE, nil, nil, nil, nil) |
| 389 | } |
| 390 | |
| 391 | func (e *encoder) floatv(tag string, in reflect.Value) { |
| 392 | // Issue #352: When formatting, use the precision of the underlying value |