sbezverk / gobmp

go based implementation of BGP's BMP protocol
Apache License 2.0
84 stars 27 forks source link

Marshal bmp go struct into bytes #241

Open matthieugouel opened 5 months ago

matthieugouel commented 5 months ago

Hey!

I looking for a way to create BMP message. Rather than unmarshal them into a nice go struct, I would like to start from a go struct and marshal it into bytes.

I was wondering if I could do that via gobmp. Looking at the code, it seems that only the unmarshal direction is implemented, but maybe I'm wrong?

Best.

matthieugouel commented 5 months ago

My question is still valid of course, but I end up using GoBMP's BMP package which has a Serialize() function.