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

Function encodeValue

docstore/memdocstore/codec.go:36–42  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

34}
35
36func encodeValue(v any) (any, error) {
37 var e encoder
38 if err := driver.Encode(reflect.ValueOf(v), &e); err != nil {
39 return nil, err
40 }
41 return e.val, nil
42}
43
44type encoder struct {
45 val any

Callers 1

updateMethod · 0.70

Calls 1

EncodeFunction · 0.92

Tested by

no test coverage detected