jaypipes / ghw

Go HardWare discovery/inspection library
Apache License 2.0
1.62k stars 174 forks source link

topology: memory: allow encode/decode cycle (#283) #284

Closed ffromani closed 2 years ago

ffromani commented 2 years ago

After we fixed #275 (allow marshal/unmarshal cycle for block.Info), we discovered few more occourrences which also prevented full JSON encode/decode/encode cycles (aka roundtrips).

All of the new findings still see unnecessary limitations, so this patch adds the missing functions.

Fixes: https://github.com/jaypipes/ghw/issues/283 Signed-off-by: Francesco Romani fromani@redhat.com

Techno-Fox commented 2 years ago

Thanks for working on this so fast