MCPcopy Index your code
hub / github.com/segmentio/encoding / prependField

Method prependField

json/decode.go:1508–1513  ·  view source on GitHub ↗
(key, field string)

Source from the content-addressed store, hash-verified

1506}
1507
1508func (d decoder) prependField(key, field string) string {
1509 if field != "" {
1510 return key + "." + field
1511 }
1512 return key
1513}
1514
1515func (d decoder) inputError(b []byte, t reflect.Type) ([]byte, error) {
1516 if len(b) == 0 {

Callers 9

decodeArrayMethod · 0.95
decodeSliceMethod · 0.95
decodeMapMethod · 0.95
decodeMapStringStringMethod · 0.95
decodeMapStringBoolMethod · 0.95
decodeStructMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected