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

Function yaml_scalar_event_initialize

apic.go:324–335  ·  view source on GitHub ↗

Create SCALAR.

(event *yaml_event_t, anchor, tag, value []byte, plain_implicit, quoted_implicit bool, style yaml_scalar_style_t)

Source from the content-addressed store, hash-verified

322
323// Create SCALAR.
324func yaml_scalar_event_initialize(event *yaml_event_t, anchor, tag, value []byte, plain_implicit, quoted_implicit bool, style yaml_scalar_style_t) bool {
325 *event = yaml_event_t{
326 typ: yaml_SCALAR_EVENT,
327 anchor: anchor,
328 tag: tag,
329 value: value,
330 implicit: plain_implicit,
331 quoted_implicit: quoted_implicit,
332 style: yaml_style_t(style),
333 }
334 return true
335}
336
337// Create SEQUENCE-START.
338func yaml_sequence_start_event_initialize(event *yaml_event_t, anchor, tag []byte, implicit bool, style yaml_sequence_style_t) bool {

Callers 1

emitScalarMethod · 0.85

Calls 1

yaml_style_tTypeAlias · 0.85

Tested by

no test coverage detected