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

Method boolv

encode.go:365–373  ·  view source on GitHub ↗
(tag string, in reflect.Value)

Source from the content-addressed store, hash-verified

363}
364
365func (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
375func (e *encoder) intv(tag string, in reflect.Value) {
376 s := strconv.FormatInt(in.Int(), 10)

Callers 1

marshalMethod · 0.95

Calls 1

emitScalarMethod · 0.95

Tested by

no test coverage detected