MCPcopy
hub / github.com/go-yaml/yaml / mappingv

Method mappingv

encode.go:256–268  ·  view source on GitHub ↗
(tag string, f func())

Source from the content-addressed store, hash-verified

254}
255
256func (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
270func (e *encoder) slicev(tag string, in reflect.Value) {
271 implicit := tag == ""

Callers 2

mapvMethod · 0.95
structvMethod · 0.95

Calls 3

emitMethod · 0.95

Tested by

no test coverage detected