(tag string, f func())
| 254 | } |
| 255 | |
| 256 | func (e *encoder) mappingv(tag string, f func()) { |
| 257 | implicit := tag == "" |
| 258 | style := yaml_BLOCK_MAPPING_STYLE |
| 259 | if e.flow { |
| 260 | e.flow = false |
| 261 | style = yaml_FLOW_MAPPING_STYLE |
| 262 | } |
| 263 | yaml_mapping_start_event_initialize(&e.event, nil, []byte(tag), implicit, style) |
| 264 | e.emit() |
| 265 | f() |
| 266 | yaml_mapping_end_event_initialize(&e.event) |
| 267 | e.emit() |
| 268 | } |
| 269 | |
| 270 | func (e *encoder) slicev(tag string, in reflect.Value) { |
| 271 | implicit := tag == "" |
no test coverage detected