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

Method intv

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

Source from the content-addressed store, hash-verified

373}
374
375func (e *encoder) intv(tag string, in reflect.Value) {
376 s := strconv.FormatInt(in.Int(), 10)
377 e.emitScalar(s, "", tag, yaml_PLAIN_SCALAR_STYLE, nil, nil, nil, nil)
378}
379
380func (e *encoder) uintv(tag string, in reflect.Value) {
381 s := strconv.FormatUint(in.Uint(), 10)

Callers 1

marshalMethod · 0.95

Calls 1

emitScalarMethod · 0.95

Tested by

no test coverage detected