0

I have a struct with various attributes that are byte arrays. For each, I generate some random bytes and I try to marshal the struct. However I can't seem to successfully unmarshal the struct. I suspect this may be due to how I am generating random bytes but I'm not sure how to pinpoint the issue here.

Playground: https://play.golang.org/p/alCsspELN4

Tony Situ
  • 13
  • 4

0 Answers0