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

Method DecodeMap

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

DecodeMap iterates over the fields of the value being decoded, invoke the callback on each with field name, a Decoder for the field value, and a bool to indicate whether or not to use exact match for the field names. It will be called when MapLen returns true or decoding a struct. If the callback re

(func(string, Decoder, bool) bool)

Source from the content-addressed store, hash-verified

355 // be called when MapLen returns true or decoding a struct. If the callback
356 // returns false, DecodeMap should return immediately.
357 DecodeMap(func(string, Decoder, bool) bool)
358
359 // AsInterface should decode the value into the Go value that best represents it.
360 AsInterface() (any, error)

Callers 2

decodeMapFunction · 0.65
decodeStructFunction · 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