Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net: unexpected padding byte when convert from net.IP to byte #28571
What version of Go are you using (
From the documentation:
In particular, you're seeing an IPv4 address embedded in an IPv6 address.
If you want a 4-byte representation, use the To4 method.
This is working as intended.