Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
36
func
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
44
type
encoder
struct
{
45
val any
Callers
1
update
Method · 0.70
Calls
1
Encode
Function · 0.92
Tested by
no test coverage detected