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

Method uintv

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

Source from the content-addressed store, hash-verified

378}
379
380func (e *encoder) uintv(tag string, in reflect.Value) {
381 s := strconv.FormatUint(in.Uint(), 10)
382 e.emitScalar(s, "", tag, yaml_PLAIN_SCALAR_STYLE, nil, nil, nil, nil)
383}
384
385func (e *encoder) timev(tag string, in reflect.Value) {
386 t := in.Interface().(time.Time)

Callers 1

marshalMethod · 0.95

Calls 1

emitScalarMethod · 0.95

Tested by

no test coverage detected