I'm trying to transfer arbitrary structs over gRPC. To achieve this I've 
trying to use gob for encoding the interface{} part of the structs. The 
code looks somewhat like https://go.dev/play/p/4Q5CQE4Wcy2 but not entirely.

Two things strike me strange:
- I receive "gob: decoding into local type []float64, received remote type 
[]float" during Decode when the interface is a []float64
- I need to use &res.Val (which is an interface) or it will stay nil. Using 
res.Val (which imho works with JSON when the target is an interface) does 
always lead to nil result.

I would appreciate any hint how to gRPC or gob.Encode interfaces properly.

Cheers,
Andi

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/b25cd32b-f789-419e-93a7-d4e149a70db1n%40googlegroups.com.

Reply via email to