MCPcopy Create free account
hub / github.com/google/go-cloud / MapLen

Method MapLen

docstore/driver/codec.go:350–350  ·  view source on GitHub ↗

MapLen should return the number of fields of the value being decoded and true, if the value can be decoded into a map or struct. Otherwise, it should return (0, false).

()

Source from the content-addressed store, hash-verified

348 // if the value can be decoded into a map or struct. Otherwise, it should return
349 // (0, false).
350 MapLen() (int, bool)
351
352 // DecodeMap iterates over the fields of the value being decoded, invoke the
353 // callback on each with field name, a Decoder for the field value, and a bool

Callers 1

decodeMapFunction · 0.65

Implementers 6

decoderdocstore/memdocstore/codec.go
decoderdocstore/awsdynamodb/v2/codec.go
decoderdocstore/gcpfirestore/codec.go
testDecoderdocstore/driver/codec_test.go
failDecoderdocstore/driver/codec_test.go
decoderdocstore/mongodocstore/codec.go

Calls

no outgoing calls

Tested by

no test coverage detected